Skip to content

Commit

Permalink
chore: update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 6, 2022
1 parent 5e02ecf commit a31b8ab
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"dev": "vitest",
"lint": "eslint --ext .ts .",
"release": "pnpm test && pnpm build && standard-version && git push --follow-tags && pnpm publish",
"test": "pnpm lint && vitest run"
"test": "pnpm lint && vitest run --coverage"
},
"dependencies": {
"defu": "^6.0.0",
Expand All @@ -33,6 +33,7 @@
"@types/flat": "^5.0.2",
"@types/jest": "^29.0.0",
"@types/node": "^18.7.15",
"@vitest/coverage-c8": "^0.23.1",
"c8": "^7.12.0",
"eslint": "^8.23.0",
"standard-version": "^9.5.0",
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

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

9 changes: 9 additions & 0 deletions vitest.config.ts
@@ -0,0 +1,9 @@
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
coverage: {
reporter: ['text', 'clover', 'json']
}
}
})

0 comments on commit a31b8ab

Please sign in to comment.