We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de31f1 commit 940444cCopy full SHA for 940444c
βserver/src/app.module.tsβ
@@ -33,7 +33,7 @@ const chosen =
33
? envMap[process.env.NODE_ENV as keyof typeof envMap]
34
: undefined;
35
36
-if (process.env.NODE_ENV !== 'PROD') {
+if (process.env.NODE_ENV !== 'PROD' && process.env.NODE_ENV !== 'TEST') {
37
if (!chosen) {
38
throw new Error(`Unknown NODE_ENV: ${process.env.NODE_ENV}`);
39
}
0 commit comments