Skip to content

Commit

Permalink
Fix coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns authored and gitbutler-client committed Jul 26, 2024
1 parent 4931cbb commit 395f271
Show file tree
Hide file tree
Showing 4 changed files with 265 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm
npx lint-staged
249 changes: 249 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"types": "./build/main.d.ts",
"scripts": {
"test": "run-p test:*",
"test:suite": "vitest",
"test:suite": "vitest run --coverage",
"test:lint": "eslint --max-warnings 0 --cache --ext js,ts --ignore-path .gitignore .",
"test:format": "prettier --check .",
"test:types": "tsc --noEmit",
Expand Down Expand Up @@ -65,6 +65,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/node": "^20.14.12",
"@vitest/coverage-v8": "^2.0.4",
"eslint": "^8.57.0",
"eslint-config-peerigon": "^39.1.0",
"eslint-plugin-no-null": "^1.0.2",
Expand Down
13 changes: 13 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { defineConfig } from "vitest/config";

// eslint-disable-next-line import/no-default-export
export default defineConfig({
test: {
root: "./src",
coverage: {
reporter: ["json", "html"],
reportsDirectory: "../coverage",
exclude: ["scripts/**", "tests/**"],
},
},
});

0 comments on commit 395f271

Please sign in to comment.