| 123456789101112131415161718 |
- import { fileURLToPath, URL } from 'node:url';
- import { defineConfig } from 'vitest/config';
- export default defineConfig({
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url)),
- '@umijs/max': fileURLToPath(new URL('./tests/umiMock.tsx', import.meta.url)),
- },
- },
- test: {
- environment: 'jsdom',
- setupFiles: ['./tests/setup.ts'],
- include: ['./tests/unit/**/*.test.{ts,tsx}'],
- css: true,
- },
- });
|