-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 956 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 956 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
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
alias: {
'@/app': path.resolve(__dirname, './app'),
'@/lib': path.resolve(__dirname, './lib'),
'@/components': path.resolve(__dirname, './app/components'),
'@/store': path.resolve(__dirname, './app/store'),
'@/config': path.resolve(__dirname, './config'),
'@/contexts': path.resolve(__dirname, './contexts'),
'@/types': path.resolve(__dirname, './types'),
},
// Exclude E2E tests
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*',
'test/e2e/**',
],
},
});