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 b1c5ac9 commit d57b0b5Copy full SHA for d57b0b5
src/loadEnvFile.ts
@@ -46,3 +46,9 @@ if (nodeEnv === 'production') {
46
// Required for DISCORD_TOKEN and other secrets
47
const localEnvFile = join(process.cwd(), '.env');
48
loadEnvFile(localEnvFile);
49
+
50
+if (nodeEnv === 'test') {
51
+ console.log('🧪 Loading test environment variables');
52
+ const testEnvFile = join(process.cwd(), '.env.test');
53
+ loadEnvFile(testEnvFile);
54
+}
0 commit comments