Skip to content

Commit

Permalink
chore: fix test coverage not working with vitest workspaces (@fehmer) (
Browse files Browse the repository at this point in the history
  • Loading branch information
fehmer authored Aug 11, 2024
1 parent ef8dfe2 commit 092d513
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"devDependencies": {
"@commitlint/cli": "17.7.1",
"@commitlint/config-conventional": "17.7.0",
"@vitest/coverage-v8": "1.6.0",
"@monkeytype/release": "workspace:*",
"conventional-changelog": "4.0.0",
"husky": "8.0.1",
Expand Down
22 changes: 22 additions & 0 deletions pnpm-lock.yaml

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

11 changes: 11 additions & 0 deletions vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
enabled: true,
include: ["**/*.ts"],
reporter: ["json"],
},
},
});

0 comments on commit 092d513

Please sign in to comment.