26 lines
670 B
TypeScript
26 lines
670 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { resolve } from 'path';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve(__dirname, './src'),
|
|
'@lilith/service-registry': resolve(
|
|
__dirname,
|
|
'./__mocks__/@lilith/service-registry.ts',
|
|
),
|
|
'@lilith/ui-styled-components': resolve(
|
|
__dirname,
|
|
'./__mocks__/@lilith/ui-styled-components.tsx',
|
|
),
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: ['@lilith/test-utils/setup'],
|
|
include: ['src/**/*.test.ts', 'src/**/*.test.tsx'],
|
|
},
|
|
});
|