diff --git a/package.json b/package.json index d4647b82..81f630fc 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -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",