chore(ci): add frontend coverage workflow

This commit is contained in:
pixelpaws
2025-09-24 23:22:32 +08:00
parent d504f89f6a
commit eda6df4a5d
5 changed files with 255 additions and 4 deletions

View File

@@ -9,7 +9,9 @@ export default defineConfig({
'tests/frontend/**/*.test.js'
],
coverage: {
enabled: false,
enabled: process.env.VITEST_COVERAGE === 'true',
provider: 'v8',
reporter: ['text', 'lcov', 'json-summary'],
reportsDirectory: 'coverage/frontend'
}
}