budibase/packages/server/scripts/jestSetup.js

8 lines
236 B
JavaScript

const { tmpdir } = require("os")
process.env.NODE_ENV = "jest"
process.env.JWT_SECRET = "test-jwtsecret"
process.env.CLIENT_ID = "test-client-id"
process.env.BUDIBASE_DIR = tmpdir("budibase-unittests")
process.env.LOG_LEVEL = "silent"