Skip to content

Commit

Permalink
vitest config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kurund committed Jan 12, 2025
1 parent b5d91a4 commit cdbd487
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
13 changes: 0 additions & 13 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,6 @@ export default ({ command, mode }: ConfigEnv): UserConfigExport => {
optimizeDeps: {
esbuildOptions: esbuildOptions,
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
coverage: {
reporter: ['lcov', 'text', 'html'],
// choosing istanbul for now because of this https://github.com/vitest-dev/vitest/issues/1252
provider: 'istanbul', // or 'c8',
include: ['src/**/**'],
exclude: ['node_modules/', '**/*.test.tsx', './src/assets/**'],
},
css: true,
},
});
}

Expand Down
17 changes: 17 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { defineConfig } from 'vitest/config';

export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.ts',
coverage: {
reporter: ['lcov', 'text', 'html'],
// choosing istanbul for now because of this https://github.com/vitest-dev/vitest/issues/1252
provider: 'istanbul', // or 'c8',
include: ['src/**/**'],
exclude: ['node_modules/', '**/*.test.tsx', './src/assets/**'],
},
css: true,
},
});

0 comments on commit cdbd487

Please sign in to comment.