Skip to content

Commit ac97372

Browse files
afonsojramosKonrad Jamrozik
andauthored
fix: jest typescript config (#340)
* fix: jest typescript config * fix: revert formatting * chore: remove `src/**` from jest script --------- Co-authored-by: Konrad Jamrozik <[email protected]>
1 parent 4c15830 commit ac97372

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,9 @@
7878
"oad": "./dist/cli.js"
7979
},
8080
"jest": {
81+
"preset": "ts-jest",
8182
"collectCoverage": true,
82-
"collectCoverageFrom": [
83-
"dist/**/*.js"
84-
],
85-
"testMatch": [
86-
"**/*[tT]est.js"
87-
],
83+
"testMatch": ["**/*[tT]est.ts"],
8884
"testTimeout": 100000
8985
},
9086
"scripts": {
@@ -94,7 +90,7 @@
9490
"dn.publish": "npm run dn.build && dotnet publish -c release openapi-diff/src/core/OpenApiDiff/OpenApiDiff.csproj",
9591
"dn.test": "npm run dn.build && dotnet test openapi-diff/src/modeler/AutoRest.Swagger.Tests/AutoRest.Swagger.Tests.csproj",
9692
"tsc": "tsc",
97-
"ts.test": "tsc && jest",
93+
"ts.test": "jest",
9894
"test": "npm run dn.test && npm run ts.test",
9995
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
10096
"lint:fix": "eslint . --fix",

0 commit comments

Comments
 (0)