Skip to content

Commit 837f633

Browse files
committed
test: coverage
1 parent eb6eb1a commit 837f633

File tree

4 files changed

+117
-0
lines changed

4 files changed

+117
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
# test
27+
/coverage

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@typescript-eslint/parser": "^6.14.0",
5353
"@unocss/reset": "^0.58.4",
5454
"@vitejs/plugin-react": "^4.2.1",
55+
"@vitest/coverage-v8": "^1.3.1",
5556
"@vitest/ui": "^1.3.1",
5657
"eslint": "^8.55.0",
5758
"eslint-plugin-react-hooks": "^4.6.0",

pnpm-lock.yaml

+109
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ export default defineConfig({
1111
test: {
1212
globals: true,
1313
// environment: "js-dom",
14+
coverage: {
15+
provider: "v8",
16+
enabled: true,
17+
},
1418
},
1519
});

0 commit comments

Comments
 (0)