muyu-portal/vitest.config.ts

23 lines
551 B
TypeScript
Raw Normal View History

2026-06-15 19:47:45 +09:00
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'),
'@@': path.resolve(__dirname, 'src/.umi'),
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./test/setup.ts'],
include: ['src/**/*.test.{ts,tsx}'],
css: false,
// Pages pull in antd + pro-components; allow a comfortable timeout.
testTimeout: 15000,
},
});