Skip to content

Commit

Permalink
ci: fix vitest config to generate coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
yc-kanyun committed Dec 6, 2024
1 parent 3538911 commit ac51113
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
6 changes: 0 additions & 6 deletions packages/core/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ import codspeedPlugin from "@codspeed/vitest-plugin";

export default defineConfig({
plugins: process.env.CODSPEED === "true" ? [codspeedPlugin()] : [],
test: {
coverage: {
reporter: ["text", "json-summary", "json", "cobertura"],
provider: "v8",
},
},
});
9 changes: 1 addition & 8 deletions packages/debug/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
reporter: ["text", "json-summary", "json", "cobertura"],
provider: "v8",
},
},
});
export default defineConfig({});
4 changes: 0 additions & 4 deletions packages/react/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
reporter: ["text", "json-summary", "json", "cobertura"],
provider: "v8",
},
environment: "happy-dom",
},
});
10 changes: 10 additions & 0 deletions vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "vitest/config";

export default defineConfig({
test: {
coverage: {
reporter: ["text", "json-summary", "json", "cobertura"],
provider: "v8",
},
},
});

0 comments on commit ac51113

Please sign in to comment.