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.
PATH
1 parent 68902d3 commit 6affd57Copy full SHA for 6affd57
.jest/set-env-vars.js
@@ -0,0 +1,5 @@
1
+/*
2
+This ensures that the PATH of the machine that the tests are running on,
3
+doesn't leak into our tests.
4
+*/
5
+process.env.PATH = ''
jest.config.js
@@ -1,11 +1,12 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
+ setupFiles: ["<rootDir>/.jest/set-env-vars.js"],
testEnvironment: 'node',
6
testMatch: ['**/*.test.ts'],
7
testRunner: 'jest-circus/runner',
8
transform: {
9
'^.+\\.ts$': 'ts-jest'
10
},
11
verbose: true
-}
12
+}
0 commit comments