Skip to content

Commit 827e8a2

Browse files
committed
chore: Reintroduced a merged coverage report
1 parent d6bd71c commit 827e8a2

File tree

9 files changed

+502
-25
lines changed

9 files changed

+502
-25
lines changed

apps/nest/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
},
2828
"devDependencies": {
2929
"@spuxx/nest-testing": "workspace:@spuxx/nest-testing@*",
30-
"@types/express": "^5.0.0",
30+
"@types/express": "5.0.0",
3131
"@vitest/coverage-v8": "3.0.5",
32-
"express-openid-connect": "^2.17.1",
32+
"express-openid-connect": "2.17.1",
3333
"source-map-support": "0.5.21",
3434
"ts-loader": "9.5.1",
3535
"ts-node": "10.9.2",

apps/nest/vite.config.mts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export default defineConfig({
5151
all: true,
5252
include: ['src/**/*.ts'],
5353
exclude: ['src/main.ts', '**/index.ts'],
54-
reportsDirectory: 'reports/coverage',
55-
reporter: ['text', 'cobertura'],
54+
reportsDirectory: 'reports/vitest/coverage',
55+
reporter: ['text', 'json'],
5656
},
5757
},
5858
});

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"app:nest": "cd apps/nest && pnpm dev",
2525
"publish:test": "pnpm -r publish --dry-run --no-git-checks",
2626
"test": "pnpm -r test",
27-
"test:vitest": "pnpm -r test:vitest",
27+
"test:vitest": "pnpm -r test:vitest && pnpm merge-coverage:vitest",
28+
"merge-coverage:vitest": "node scripts/merge-coverage-vitest.js",
2829
"check": "pnpm types && pnpm run lint && pnpm run prettier-check",
2930
"types": "pnpm -r types",
3031
"lint": "eslint . --ext ts,tsx",
@@ -40,6 +41,7 @@
4041
"eslint": "8.57.0",
4142
"eslint-config-prettier": "9.1.0",
4243
"eslint-plugin-prettier": "5.2.1",
44+
"nyc": "17.1.0",
4345
"prettier": "3.3.3",
4446
"release-please": "16.12.0",
4547
"vitest": "3.0.5"

packages/browser-utils/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default defineConfig({
3636
all: true,
3737
include: ['src/**/*.ts'],
3838
exclude: ['src/main.ts', '**/index.ts', '**/*types.ts', '**/*.d.ts'],
39-
reportsDirectory: 'reports/coverage',
40-
reporter: ['text', 'cobertura'],
39+
reportsDirectory: 'reports/vitest/coverage',
40+
reporter: ['text', 'json'],
4141
},
4242
},
4343
});

packages/js-utils/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export default defineConfig({
3434
provider: 'v8',
3535
all: true,
3636
include: ['**/*.ts'],
37-
reportsDirectory: 'reports/coverage',
38-
reporter: ['text', 'cobertura'],
37+
reportsDirectory: 'reports/vitest/coverage',
38+
reporter: ['text', 'json'],
3939
},
4040
},
4141
});

packages/nest-testing/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default defineConfig({
6262
all: true,
6363
include: ['src/**/*.ts'],
6464
exclude: ['src/main.ts', '**/index.ts'],
65-
reportsDirectory: 'reports/coverage',
66-
reporter: ['text', 'cobertura'],
65+
reportsDirectory: 'reports/vitest/coverage',
66+
reporter: ['text', 'json'],
6767
},
6868
},
6969
});

packages/nest-utils/vite.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default defineConfig({
6262
provider: 'v8',
6363
all: true,
6464
include: ['**/*.ts'],
65-
reportsDirectory: 'reports/coverage',
66-
reporter: ['text', 'cobertura'],
65+
reportsDirectory: 'reports/vitest/coverage',
66+
reporter: ['text', 'json'],
6767
},
6868
},
6969
});

0 commit comments

Comments
 (0)