15 lines
351 B
TypeScript
15 lines
351 B
TypeScript
import { resolve } from 'node:path';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: 'src/test/setup.ts',
|
|
include: ['src/**/*.{spec,test}.{ts,tsx}'],
|
|
},
|
|
resolve: {
|
|
alias: [{ find: '@', replacement: resolve(__dirname, './src') }],
|
|
},
|
|
});
|