Skip to content

Commit 15d0251

Browse files
author
Adam Butterworth
authored
fix: update setupTest to look for .env.test (#19)
BREAKING CHANGE: jest test setup configuration will look for .env.test instead of .env.development and no longer warn in the console if none is found.
1 parent 52754cb commit 15d0251

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

config/jest/setupTest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ require('babel-polyfill');
55

66
const { PROJECT_ROOT } = require('../../lib/paths');
77

8-
const testEnvFile = path.resolve(PROJECT_ROOT, '.env.development');
8+
const testEnvFile = path.resolve(PROJECT_ROOT, '.env.test');
99

1010
if (fs.existsSync(testEnvFile)) {
1111
dotenv.config({ path: testEnvFile });
12-
} else {
13-
console.log(`No .env.development file found at ${testEnvFile}. No env vars will be loaded.`);
1412
}

0 commit comments

Comments
 (0)