got to a stable point again. next up is comming up with a decent API for modifications

This commit is contained in:
Chris Kruining 2025-02-25 16:21:21 +11:00
parent 4fb7405466
commit fc22ce6027
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
19 changed files with 498 additions and 375 deletions

View file

@ -28,7 +28,7 @@ export default defineConfig({
provider: 'istanbul',
reportsDirectory: './.coverage',
all: false,
},
}
},
});
@ -39,6 +39,12 @@ function reportWith(...reporter: CoverageReporter[]): Plugin {
config(userConf, env) {
if (userConf.test) {
userConf.test.coverage = { ...userConf.test.coverage, reporter } as CoverageV8Options;
userConf.test.browser = {
provider: 'playwright',
enabled: true,
headless: true,
instances: [{ browser: 'chromium' }]
};
}
},
}