-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvite.config.ts
34 lines (32 loc) · 1.15 KB
/
vite.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
31
32
33
34
/// <reference types="vitest" />
import react from '@vitejs/plugin-react'
import path from 'path'
import {defineConfig} from 'vite'
import svgr from 'vite-plugin-svgr'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
test: {
globals: true,
environment: "jsdom",
setupFiles: "./tests/unitTestsSrc/setup.ts",
dir: "./tests/unitTestsSrc",
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@components": path.resolve(__dirname, "./src/components"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@styles": path.resolve(__dirname, "./src/styles"),
"@constants": path.resolve(__dirname, "./src/constants"),
"@assets": path.resolve(__dirname, "./src/assets"),
"@apis": path.resolve(__dirname, "./src/apis"),
"@mocks": path.resolve(__dirname, "./src/mocks"),
"@routes": path.resolve(__dirname, "./src/routes"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@type": path.resolve(__dirname, "./src/types"),
"@store": path.resolve(__dirname, "./src/store"),
},
},
});