Skip to content

Commit 5020c50

Browse files
committed
chore: update repository name in package.json and enhance Vitest configuration with coverage options and test file inclusion/exclusion
1 parent 6752fe5 commit 5020c50

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"README.md"
3232
],
3333
"author": "Matthew Thomas",
34-
"repository": "github:ctrf-io/playwright-ctrf-json-report",
34+
"repository": "github:ctrf-io/junit-to-ctrf",
3535
"homepage": "https://ctrf.io",
3636
"license": "MIT",
3737
"dependencies": {

vitest.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,23 @@ import { defineConfig } from "vitest/config";
33
export default defineConfig({
44
test: {
55
reporters: ["default", "@d2t/vitest-ctrf-json-reporter"],
6+
coverage: {
7+
provider: "v8",
8+
reporter: ["text", "json", "html"],
9+
exclude: [
10+
"node_modules/",
11+
"dist/",
12+
"coverage/",
13+
"**/*.d.ts",
14+
"**/*.test.ts",
15+
"**/*.spec.ts",
16+
"test-helpers/",
17+
"ctrf/",
18+
],
19+
},
20+
environment: "node",
21+
globals: false,
22+
include: ["src/**/*.{test,spec}.{js,ts}"],
23+
exclude: ["node_modules/", "dist/", "coverage/"],
624
},
725
});

0 commit comments

Comments
 (0)