diff --git a/package.json b/package.json index d985e3e..5b85681 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "scripts": { "build": "unbuild", "test": "vitest", - "coverage": "vitest run --coverage --reporter=json", + "coverage": "vitest run --coverage", "lint": "eslint .", "lint:fix": "eslint . --fix", "release": "yarn lint && yarn test run && yarn build && npx changelogen@latest --release --push" diff --git a/vitest.config.ts b/vitest.config.ts index 2fc41f0..5caa347 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -4,5 +4,8 @@ export default defineConfig({ test: { globals: true, environment: 'jsdom', + coverage: { + reporter: ['html', 'text', 'json', 'json-summary'], + }, }, })