Skip to content

Commit

Permalink
Use istanbul instead
Browse files Browse the repository at this point in the history
  • Loading branch information
qiushi1511 committed Oct 21, 2024
1 parent 44351fa commit ae26c5c
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"@vitejs/plugin-react": "^4.3.2",
"@vitest/coverage-v8": "2.1.3",
"@vitest/coverage-istanbul": "^2.1.3",
"eslint": "^8",
"eslint-config-next": "14.2.6",
"jsdom": "^25.0.1",
Expand Down
11 changes: 10 additions & 1 deletion apps/web/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { defineConfig } from "vitest/config";
import { defineConfig, configDefaults } from "vitest/config";
import react from "@vitejs/plugin-react";

export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
coverage: {
...configDefaults.coverage,
provider: "istanbul",
exclude: [
...configDefaults.coverage.exclude!,
"next.config.mjs",
"app/layout.tsx",
],
},
},
});
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit ae26c5c

Please sign in to comment.