phantasmal-world/test/src/setup.js

9 lines
202 B
JavaScript

const Logger = require("js-logger");
require('dotenv').config({ path: ".env.test" })
const log_level = process.env["LOG_LEVEL"] || "OFF";
Logger.useDefaults({
defaultLevel: Logger[log_level],
});