2026-07-02 20:01:48 +08:00
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
|
import path from 'path'
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [react()],
|
|
|
|
|
test: {
|
|
|
|
|
environment: 'jsdom',
|
|
|
|
|
globals: true,
|
|
|
|
|
setupFiles: ['./vitest.setup.ts'],
|
2026-07-08 18:07:07 +08:00
|
|
|
exclude: ['**/node_modules/**', '**/dist/**', '**/e2e/**'],
|
2026-07-02 20:01:48 +08:00
|
|
|
alias: {
|
|
|
|
|
'@': path.resolve(__dirname, './src'),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
})
|