Skip to content

Commit

Permalink
test(coverage): setup coverage for TS packages
Browse files Browse the repository at this point in the history
setup code coverage for TS packages using istanbul (nyc)
  • Loading branch information
ctrlc03 committed Jan 2, 2024
1 parent 7a30c36 commit f4e6964
Show file tree
Hide file tree
Showing 8 changed files with 6,210 additions and 228 deletions.
1,897 changes: 1,786 additions & 111 deletions cli/package-lock.json

Large diffs are not rendered by default.

24 changes: 22 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"watch": "tsc --watch",
"build": "tsc",
"postbuild": "cp package.json ./build",
"test": "ts-mocha --exit tests/*.test.ts",
"test": "nyc ts-mocha --exit tests/*.test.ts",
"test:e2e": "ts-mocha --exit tests/e2e.test.ts",
"test:e2e-subsidy": "ts-mocha --exit tests/e2e.subsidy.test.ts",
"test:keyChange": "ts-mocha --exit tests/keyChange.test.ts"
Expand All @@ -41,8 +41,28 @@
"@types/node": "^18.11.9",
"chai": "^4.3.10",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"ts-mocha": "^10.0.0",
"typescript": "^5.3.2"
},
"gitHead": "f567a17293114ba2d5e89c711d00a9f4c197f070"
"nyc": {
"reporter": [
"text",
"lcov"
],
"extensions": [
".ts"
],
"all": true,
"exclude": [
"**/tests/*.ts",
"**/*.js",
"**/*.d.ts",
"hardhat.config.ts"
],
"branches": ">50%",
"lines": ">50%",
"functions": ">50%",
"statements": ">50%"
}
}
Loading

0 comments on commit f4e6964

Please sign in to comment.