www/vitest.config.ts
2025-05-16 18:15:12 +12:00

14 lines
359 B
TypeScript

/// <reference types="vitest" />
import { getViteConfig } from 'astro/config'
import { defaultExclude } from 'vitest/config'
export default getViteConfig({
test: {
exclude: [...defaultExclude, '**/*.spec.ts'],
setupFiles: ['./src/tests/vitest.setup.ts'],
coverage: {
provider: 'istanbul',
reporter: ['text', 'html'],
},
},
})