Skip to content

Commit

Permalink
setup of code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassidy-Boilley committed May 28, 2024
1 parent 486ca28 commit c9f5d41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion jest-playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ module.exports = {
launchTimeout: 10000,
debug: true,
},
collectCoverage: true,
};
5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ module.exports = {
verbose: true,
testTimeout: 40000,
setupFilesAfterEnv: ['expect-playwright'],

collectCoverageFrom: ['./src/**'],
collectCoverage: true,
coverageDirectory: './coverage',
coverageReporters: ['html'],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prepare": "husky",
"format": "eslint --fix . && prettier --write .",
"jest": "jest e2e",
"coverage": "jest e2e --coverage"
"coverage": "jest --coverage"
},
"lint-staged": {
"**/*": [
Expand Down

0 comments on commit c9f5d41

Please sign in to comment.