We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88796cc commit ed53f9cCopy full SHA for ed53f9c
2 files changed
jest.config.ts
@@ -15,12 +15,7 @@ const config: Config = {
15
'^(\\.{1,2}/.*)\\.js$': '$1',
16
},
17
transform: {
18
- '^.+\\.m?ts$': [
19
- 'ts-jest',
20
- {
21
- useESM: true,
22
- },
23
- ],
+ '^.+\\.m?ts$': ['ts-jest', { useESM: true }],
24
25
};
26
package.json
@@ -12,7 +12,7 @@
12
"lint:fix": "npm run lint -- --fix",
13
"lint:tsc": "tsc --noEmit",
14
"prepare": "husky",
- "test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest",
+ "test": "node --experimental-vm-modules $(npx which jest)",
"test:ci": "CI=true npm test -- --ci --colors --coverage",
"test:watch": "npm test -- --watch"
0 commit comments