mirror of
https://github.com/zoriya/v10.git
synced 2026-08-09 23:58:06 +00:00
25 lines
583 B
TypeScript
25 lines
583 B
TypeScript
/// <reference types="vitest" />
|
|
import react from '@vitejs/plugin-react';
|
|
import { getViteConfig } from 'astro/config';
|
|
|
|
export default getViteConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test-setup.ts'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json', 'html'],
|
|
include: ['src/utils/**', 'src/components/**', 'src/types/**'],
|
|
exclude: [
|
|
'**/*.test.ts',
|
|
'**/*.test.tsx',
|
|
'**/*.spec.ts',
|
|
'**/*.spec.tsx',
|
|
'**/test/**',
|
|
],
|
|
},
|
|
},
|
|
});
|