-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.ts
30 lines (28 loc) · 979 Bytes
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vitest/config';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'happy-dom',
setupFiles: ['./test/setup.ts'],
css: false,
},
resolve: {
alias: [
{ find: '@features', replacement: resolve(__dirname, './features') },
{ find: '@entities', replacement: resolve(__dirname, './entities') },
{ find: '@shared', replacement: resolve(__dirname, './shared') },
{ find: '@widgets', replacement: resolve(__dirname, './widgets') },
{
find: '@customTypes',
replacement: resolve(__dirname, './shared/types'),
},
{ find: '@styles', replacement: resolve(__dirname, './styles') },
{ find: '@assets', replacement: resolve(__dirname, './assets') },
{ find: '@test', replacement: resolve(__dirname, './test') },
],
},
});