budibase/packages/server/scripts/jestSetup.js

9 lines
273 B
JavaScript
Raw Normal View History

2020-05-14 16:12:30 +02:00
const { tmpdir } = require("os")
const env = require("../src/environment")
2020-05-14 16:12:30 +02:00
env._set("NODE_ENV", "jest")
env._set("JWT_SECRET", "test-jwtsecret")
env._set("CLIENT_ID", "test-client-id")
env._set("BUDIBASE_DIR", tmpdir("budibase-unittests"))
env._set("LOG_LEVEL", "silent")