25 lines
749 B
TypeScript
25 lines
749 B
TypeScript
import path from 'node:path';
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
exclude: ['**/*.stories.tsx', 'node_modules/**'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
$shared: path.resolve(__dirname, './src/shared'),
|
|
$entities: path.resolve(__dirname, './src/entities'),
|
|
$widgets: path.resolve(__dirname, './src/widgets'),
|
|
$features: path.resolve(__dirname, './src/features'),
|
|
$app: path.resolve(__dirname, './src/app'),
|
|
$routes: path.resolve(__dirname, './src/routes'),
|
|
'@': path.resolve(__dirname, '.'),
|
|
},
|
|
},
|
|
});
|