Skip to content

Commit b1ba4e1

Browse files
committed
Reconfigure jest to be much faster
1 parent 0234a8a commit b1ba4e1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

jest.config.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@ export default {
22
"transform": {
33
".ts": "ts-jest"
44
},
5+
"testEnvironment": "node",
56
"testRegex": "(/tests?/.*|\\.(test|spec))\\.(ts|js)$",
67
"moduleFileExtensions": [
78
"ts",
89
"js"
910
],
1011
"modulePathIgnorePatterns": [
1112
"out"
12-
]
13-
}
13+
],
14+
"globals": {
15+
"ts-jest": {
16+
"isolatedModules": true
17+
}
18+
}
19+
};

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"vscode:prepublish": "npm run compile",
3838
"compile": "tsc -p ./src",
3939
"watch": "tsc -watch -p ./src",
40-
"pretest": "npm run compile",
4140
"test": "jest --projects jest.config.ts",
4241
"lint": "eslint ./src",
4342
"deploy": "vsce publish"

0 commit comments

Comments
 (0)