Skip to content

Commit

Permalink
Update test cov config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Jul 25, 2023
1 parent 9f68ffa commit 7337703
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"copy-pem": "mkdir -p dist && cp -u ./wallet.pem ./dist/wallet.pem | true",
"test": "jest --detectOpenHandles",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:cov": "jest --coverage --config ./test/jest-config.json --forceExit",
"clear_jest": "jest --clearCache",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "NODE_ENV=test-e2e jest --config ./test/jest-e2e.json --forceExit --maxWorkers=4",
Expand Down
11 changes: 11 additions & 0 deletions test/jest-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"moduleFileExtensions": ["js", "json", "ts"],
"modulePaths": ["<rootDir>"],
"rootDir": "../",
"testRegex": "src/.*spec.ts$",
"testEnvironment": "node",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "./coverage/unit"
}

0 comments on commit 7337703

Please sign in to comment.