Spaces:
Running
Running
import { defineConfig } from 'vitest/config' | |
import react from '@vitejs/plugin-react-swc' | |
import eslintPlugin from 'vite-plugin-eslint' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
base: '/', | |
plugins: [react(), eslintPlugin()], | |
test: { | |
globals: true, | |
environment: 'jsdom', | |
setupFiles: './src/setupTests.ts', | |
css: true, | |
reporters: ['verbose'], | |
coverage: { | |
reporter: ['text', 'json', 'html'], | |
include: ['src/**/*'], | |
exclude: [], | |
}, | |
}, | |
server: { | |
headers: { | |
'Cross-Origin-Opener-Policy': 'same-origin', | |
'Cross-Origin-Embedder-Policy': 'require-corp', | |
}, | |
}, | |
}) | |