mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
wip
This commit is contained in:

committed by
Geoff Seemueller

parent
21d6c8604e
commit
554096abb2
23
packages/services/vite.config.ts
Normal file
23
packages/services/vite.config.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'vite';
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import { configDefaults } from 'vitest/config';
|
||||
|
||||
export default defineConfig(({ command }) => {
|
||||
return {
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
registerNodeLoader: false,
|
||||
// setupFiles: ['./src/test/setup.ts'],
|
||||
exclude: [...configDefaults.exclude, 'dist/**', '.open-gsio/**'],
|
||||
reporters: process.env.GITHUB_ACTIONS ? ['dot', 'github-actions', 'html'] : ['dot', 'html'],
|
||||
coverage: {
|
||||
// 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