20 lines
472 B
TypeScript
20 lines
472 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
import react from '@vitejs/plugin-react'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
export default defineConfig({
|
|
plugins: [tsconfigPaths(), react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
pool: 'forks',
|
|
maxWorkers: 1,
|
|
isolate: false,
|
|
setupFiles: ['./src/test/setup.js'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'json-summary', 'json'],
|
|
thresholds: { lines: 65 }
|
|
}
|
|
}
|
|
})
|