Skip to content

Commit

Permalink
fix: jest typescript config (#340)
Browse files Browse the repository at this point in the history
* fix: jest typescript config

* fix: revert formatting

* chore: remove `src/**` from jest script

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
  • Loading branch information
afonsojramos and Konrad Jamrozik committed Jul 2, 2024
1 parent 4c15830 commit ac97372
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,9 @@
"oad": "./dist/cli.js"
},
"jest": {
"preset": "ts-jest",
"collectCoverage": true,
"collectCoverageFrom": [
"dist/**/*.js"
],
"testMatch": [
"**/*[tT]est.js"
],
"testMatch": ["**/*[tT]est.ts"],
"testTimeout": 100000
},
"scripts": {
Expand All @@ -94,7 +90,7 @@
"dn.publish": "npm run dn.build && dotnet publish -c release openapi-diff/src/core/OpenApiDiff/OpenApiDiff.csproj",
"dn.test": "npm run dn.build && dotnet test openapi-diff/src/modeler/AutoRest.Swagger.Tests/AutoRest.Swagger.Tests.csproj",
"tsc": "tsc",
"ts.test": "tsc && jest",
"ts.test": "jest",
"test": "npm run dn.test && npm run ts.test",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --fix",
Expand Down

0 comments on commit ac97372

Please sign in to comment.