Skip to content

Commit 760af6b

Browse files
committed
feat: setup jest
1 parent cb11e1f commit 760af6b

File tree

3 files changed

+1763
-49
lines changed

3 files changed

+1763
-49
lines changed

jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
testPathIgnorePatterns: ["/node_modules/", "lib/vscode/"]
5+
};

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"@types/express": "^4.17.8",
3636
"@types/fs-extra": "^8.0.1",
3737
"@types/http-proxy": "^1.17.4",
38+
"@types/jest": "^26.0.20",
3839
"@types/js-yaml": "^3.12.3",
3940
"@types/mocha": "^8.0.3",
4041
"@types/node": "^12.12.7",
@@ -55,13 +56,15 @@
5556
"eslint-config-prettier": "^6.0.0",
5657
"eslint-plugin-import": "^2.18.2",
5758
"eslint-plugin-prettier": "^3.1.0",
59+
"jest": "^26.6.3",
5860
"leaked-handles": "^5.2.0",
5961
"mocha": "^8.1.2",
6062
"parcel-bundler": "^1.12.4",
6163
"prettier": "^2.0.5",
6264
"stylelint": "^13.0.0",
6365
"stylelint-config-recommended": "^3.0.0",
6466
"supertest": "^6.0.1",
67+
"ts-jest": "^26.4.4",
6568
"ts-node": "^9.0.0",
6669
"typescript": "4.0.2"
6770
},

0 commit comments

Comments
 (0)