-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (31 loc) · 847 Bytes
/
vitest.config.ts
File metadata and controls
33 lines (31 loc) · 847 Bytes
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
31
32
33
import { resolve } from 'path';
import react from '@vitejs/plugin-react';
import svgr from 'vite-plugin-svgr';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [
react({
jsxImportSource: '@emotion/react',
}),
svgr({
include: '**/*.svg',
exclude: '**/*.symbol.svg',
}),
],
resolve: {
alias: {
'#app': resolve(__dirname, 'src/app'),
'#pages': resolve(__dirname, 'src/pages'),
'#shared': resolve(__dirname, 'src/shared'),
'#features': resolve(__dirname, 'src/features'),
'#entities': resolve(__dirname, 'src/entities'),
'#widgets': resolve(__dirname, 'src/widgets'),
},
},
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./test/setup.ts'],
exclude: ['**/tests/**', '**/node_modules/**'],
},
});