26 lines
678 B
TypeScript
26 lines
678 B
TypeScript
|
|
import { defineConfig } from 'vitest/config';
|
||
|
|
import react from '@vitejs/plugin-react';
|
||
|
|
import tailwindcss from '@tailwindcss/vite';
|
||
|
|
import path from 'node:path';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react(), tailwindcss()],
|
||
|
|
resolve: {
|
||
|
|
alias: {
|
||
|
|
'@': path.resolve(__dirname, './src'),
|
||
|
|
},
|
||
|
|
},
|
||
|
|
test: {
|
||
|
|
globals: true,
|
||
|
|
environment: 'jsdom',
|
||
|
|
setupFiles: ['./src/test/setup.ts'],
|
||
|
|
css: true,
|
||
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
||
|
|
coverage: {
|
||
|
|
provider: 'v8',
|
||
|
|
reporter: ['text', 'html', 'lcov'],
|
||
|
|
exclude: ['node_modules/', 'src/test/', '**/*.config.*', '**/*.d.ts', 'src/main.tsx', 'src/mocks/**'],
|
||
|
|
},
|
||
|
|
},
|
||
|
|
});
|