Skip to content

Commit ed53f9c

Browse files
chore(jest): tidy config and script
1 parent 88796cc commit ed53f9c

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

jest.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ const config: Config = {
1515
'^(\\.{1,2}/.*)\\.js$': '$1',
1616
},
1717
transform: {
18-
'^.+\\.m?ts$': [
19-
'ts-jest',
20-
{
21-
useESM: true,
22-
},
23-
],
18+
'^.+\\.m?ts$': ['ts-jest', { useESM: true }],
2419
},
2520
};
2621

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"lint:fix": "npm run lint -- --fix",
1313
"lint:tsc": "tsc --noEmit",
1414
"prepare": "husky",
15-
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest",
15+
"test": "node --experimental-vm-modules $(npx which jest)",
1616
"test:ci": "CI=true npm test -- --ci --colors --coverage",
1717
"test:watch": "npm test -- --watch"
1818
},

0 commit comments

Comments
 (0)