Skip to content

Commit

Permalink
chore: use lcov for vitest coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jan 22, 2025
1 parent 3136749 commit efb5a50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
16 changes: 1 addition & 15 deletions backend/package-lock.json

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

3 changes: 1 addition & 2 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
"tsconfig-paths": "^4.2.0",
"typescript": "^5.2.2",
"unplugin-swc": "^1.5.1",
"vitest": "^3.0.2",
"vitest-sonar-reporter": "^2.0.0"
"vitest": "^3.0.2"
},
"lint-staged": {
"*.{js,ts}": "./node_modules/.bin/eslint --cache --fix"
Expand Down
6 changes: 2 additions & 4 deletions backend/vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ export default defineConfig({
exclude: ["**/node_modules/**"],
globals: true,
environment: "node",
setupFiles: "test/test-setup.ts",
coverage: {
provider: "v8",
reporter: ["text-summary", "text", "json", "html"],
reporter: ["lcov"],
},
reporters: process.env.GITHUB_ACTIONS
? [["vitest-sonar-reporter", { outputFile: "test-report.xml" }]]
: [],
},
plugins: [swc.vite()],
});

0 comments on commit efb5a50

Please sign in to comment.