Skip to content

Commit

Permalink
Create combined coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Feb 6, 2024
1 parent 4219087 commit 5d3a9d3
Show file tree
Hide file tree
Showing 5 changed files with 690 additions and 118 deletions.
3 changes: 2 additions & 1 deletion .config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
* @type {import("jest").Config}
*/
module.exports = {
coverageDirectory: "<rootDir>/reports/server-coverage/",
coverageDirectory: "<rootDir>/.nyc_output/",
coverageReporters: [["json", { file: "server.json" }], "text"],
rootDir: "..",
setupFilesAfterEnv: ["<rootDir>/server/setupTests.js"],
testEnvironment: "node",
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/
.nyc_output/
dist/
e2e/downloads/
e2e/screenshots/
Expand Down
4 changes: 3 additions & 1 deletion client/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export default defineConfig({
},
test: {
coverage: {
reportsDirectory: "../reports/client-coverage/",
provider: "istanbul",
reporter: [["json", { file: "client.json" }], ["text"]],
reportsDirectory: "../.nyc_output/",
},
environment: "jsdom",
globals: true,
Expand Down
Loading

0 comments on commit 5d3a9d3

Please sign in to comment.