Skip to content

Commit 1586411

Browse files
committed
added ts-jest references
1 parent 9c8fe63 commit 1586411

File tree

4 files changed

+49
-2
lines changed

4 files changed

+49
-2
lines changed

jest.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
preset: 'ts-jest',
3+
testEnvironment: 'node',
4+
};

package-lock.json

+43
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@
1717
"clean": "rm -rf dist && rm -rf out",
1818
"build": "tsc",
1919
"rebuild": "npm run clean && npm run build",
20-
"pretest": "tsc && tsc -p spec/tsconfig.json",
2120
"test": "jest",
2221
"posttest": "npm run lint",
2322
"lint": "tslint -c tslint.json --project tsconfig.json && tslint -c tslint.json --project spec/tsconfig.json",
2423
"pretty": "pretty-quick --stage"
2524
},
2625
"dependencies": {},
2726
"devDependencies": {
27+
"@types/jest": "25.1.3",
2828
"@types/node": "13.7.4",
2929
"jest": "25.1.0",
3030
"prettier": "1.19.1",
3131
"pretty-quick": "2.0.1",
32+
"ts-jest": "25.2.1",
3233
"ts-node": "8.6.2",
3334
"tslint": "5.20.1",
3435
"tslint-config-airbnb": "5.11.2",

spec/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"target": "es5",
66
"lib": ["es6"],
77
"moduleResolution": "node",
8-
"noImplicitAny": true,
98
"noImplicitReturns": true,
109
"noUnusedLocals": true,
1110
"noImplicitThis": true,

0 commit comments

Comments
 (0)