18 lines
465 B
TypeScript
18 lines
465 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import {defineConfig} from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
include: ['features/**/*.test.ts', 'features/**/*.test.tsx', 'components/**/*.test.tsx'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': new URL('.', import.meta.url).pathname,
|
|
},
|
|
},
|
|
});
|