23 lines
551 B
TypeScript
23 lines
551 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'),
|
|
'@@': 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,
|
|
},
|
|
});
|