expose test information

This commit is contained in:
geoffsee
2025-05-31 21:51:26 -04:00
parent 3cf7ceb868
commit fb90461edb
5 changed files with 197 additions and 119 deletions

View File

@@ -85,11 +85,14 @@ export default defineConfig(({command}) => {
environment: 'jsdom',
registerNodeLoader: false,
setupFiles: ['./src/test/setup.ts'],
exclude: [...configDefaults.exclude, 'workers/**', 'dist/**'],
exclude: [...configDefaults.exclude, 'dist/**'],
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions', 'html'] : ['dot', 'html'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: ['node_modules/', 'src/test/']
// you can include other reporters, but 'json-summary' is required, json is recommended
reporter: ['json-summary', 'json', 'html'],
reportsDirectory: "coverage",
// If you want a coverage reports even if your tests are failing, include the reportOnFailure option
reportOnFailure: true,
}
}
};