Skip to content

Commit

Permalink
Add test:coverage script
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Sep 19, 2024
1 parent c10da7a commit 3188cde
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
coverage-reports
191 changes: 190 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lint": "eslint .",
"test": "mocha '**/*.test.js'",
"test:integration": "mocha --bail --slow 1000 test/test.integration.js",
"test:coverage": "mcr --filter \"{'**/node_modules/**':false,'**/**':true}\" -r v8,console-details mocha '**/*.test.js'",
"watch": "chokidar '**/*.js' -c 'npm t' --initial --silent",
"prepare": "husky && sh scripts/install-fixture-deps.sh",
"preversion": "npm run lint && npm run prettier:check && tsc && npm test && npm run test:integration",
Expand Down Expand Up @@ -49,6 +50,7 @@
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"mocha": "^10.7.0",
"monocart-coverage-reports": "^2.10.9",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
},
Expand Down

0 comments on commit 3188cde

Please sign in to comment.