24 lines
488 B
TypeScript
24 lines
488 B
TypeScript
|
|
import { defineConfig } from 'vitest/config'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
import path from 'path'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
'@': path.resolve(__dirname, './src'),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
globals: true,
|
||
|
|
environment: 'jsdom',
|
||
|
|
setupFiles: './src/test/setup.ts',
|
||
|
|
css: true,
|
||
|
|
exclude: ['node_modules', 'e2e'],
|
||
|
|
coverage: {
|
||
|
|
provider: 'v8',
|
||
|
|
reporter: ['text', 'json', 'html'],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})
|