diff --git a/package.json b/package.json index 1445cafd..a87a7bd1 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "install-examples": "npm install && cd examples && npm install", "gh-build": "npm run processCSS && cd examples && npm run build-example", "lint": "eslint src/**", - "test": "vitest run --coverage", + "test": "vitest run", + "coverage": "vitest run --coverage", "typeCheck": "tsc -p tsconfig.json --noEmit", "all-checks": "npm-run-all lint test typeCheck", "generateTypes": "tsc -p tsconfig.base.json --emitDeclarationOnly", diff --git a/vitest.config.ts b/vitest.config.ts index 43ed54e7..bef7d801 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,5 +6,8 @@ export default defineConfig({ environment: "jsdom", globals: true, setupFiles: ["./src/test/testSetup.ts"], + coverage: { + reporter: ["text", "json-summary", "json"], + }, }, });