chore: Switch coverage from istanbul to the v8 provider for speed (#2619)

This commit is contained in:
Dermot Duffy
2026-07-26 14:21:27 -07:00
committed by GitHub
parent 3b8835ee7c
commit ababe133a8
32 changed files with 128 additions and 275 deletions
+6 -2
View File
@@ -128,8 +128,12 @@ export default defineConfig({
coverage: {
exclude: EXCLUSIONS,
// Favor istanbul for coverage over v8 due to better accuracy.
provider: 'istanbul',
// 'v8' reads coverage from the JavaScript engine, so it runs about twice
// as fast as 'istanbul', which has to rewrite every source file first.
// Known gap: 'istanbul' will flag a default parameter value that no test
// ever falls back on -- 'v8' will not, but it is not worth the
// significant performance slowdown to cover this rare case.
provider: 'v8',
thresholds: {
perFile: true,
'src/**/*.ts': {