wcb/vitest.config.mjs
Ayo ce30b114a2 chore: new demo workspace & e2e tests
- this adds a new demo web app with vite HMR for development
- all examples are covered with e2e tests
2026-07-05 15:40:53 +02:00

22 lines
524 B
JavaScript

import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: 'happy-dom',
exclude: [
'**/node_modules/**',
'**/dist/**',
'./temp/**',
// e2e specs run in a real browser via vitest.e2e.config.mjs
'test/e2e/**',
],
coverage: {
enabled: true,
provider: 'v8',
reporter: ['html', 'text'],
include: ['src'],
// barrel files only re-export; they carry no logic to cover
exclude: ['**/index.js'],
},
},
})