budibase/packages/server/scripts/jestSetup.js

8 lines
250 B
JavaScript
Raw Normal View History

2020-05-14 16:12:30 +02:00
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")
2020-05-18 16:46:38 +02:00
process.env.ADMIN_SECRET = "test-admin-secret"