19 lines
470 B
TypeScript
19 lines
470 B
TypeScript
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: './resources/js/__tests__/setup.ts',
|
|
include: ['resources/js/__tests__/**/*.test.tsx'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './resources/js'),
|
|
},
|
|
},
|
|
});
|