fix tests

This commit is contained in:
Rory Powell 2021-09-20 12:58:58 +01:00
parent 96b76231a9
commit 4215f1b919
3 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
const env = require("../src/environment") const env = require("../src/environment")
env._set("SELF_HOSTED", "1")
env._set("NODE_ENV", "jest") env._set("NODE_ENV", "jest")
env._set("JWT_SECRET", "test-jwtsecret") env._set("JWT_SECRET", "test-jwtsecret")
env._set("LOG_LEVEL", "silent") env._set("LOG_LEVEL", "silent")

View File

@ -1,6 +1,7 @@
const { tmpdir } = require("os") const { tmpdir } = require("os")
const env = require("../src/environment") const env = require("../src/environment")
env._set("SELF_HOSTED", "1")
env._set("NODE_ENV", "jest") env._set("NODE_ENV", "jest")
env._set("JWT_SECRET", "test-jwtsecret") env._set("JWT_SECRET", "test-jwtsecret")
env._set("CLIENT_ID", "test-client-id") env._set("CLIENT_ID", "test-client-id")

View File

@ -1,5 +1,6 @@
const env = require("../src/environment") const env = require("../src/environment")
env._set("SELF_HOSTED", "1")
env._set("NODE_ENV", "jest") env._set("NODE_ENV", "jest")
env._set("JWT_SECRET", "test-jwtsecret") env._set("JWT_SECRET", "test-jwtsecret")
env._set("LOG_LEVEL", "silent") env._set("LOG_LEVEL", "silent")