mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
expose test information
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user