-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathvite.config.ts
More file actions
38 lines (36 loc) · 1.15 KB
/
vite.config.ts
File metadata and controls
38 lines (36 loc) · 1.15 KB
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
35
36
37
38
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@components": path.resolve(__dirname, "src/components"),
"@atoms": path.resolve(__dirname, "src/components/atoms"),
"@molecules": path.resolve(__dirname, "src/components/molecules"),
"@organisms": path.resolve(__dirname, "src/components/organisms"),
"@demos": path.resolve(__dirname, "src/components/demos"),
"@hooks": path.resolve(__dirname, "src/hooks"),
"@data": path.resolve(__dirname, "src/data"),
"@types": path.resolve(__dirname, "src/types"),
"@i18n": path.resolve(__dirname, "src/i18n"),
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: "./src/test/setup.ts",
coverage: {
provider: "v8",
reporter: ["text", "lcov"],
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/main.tsx", "src/test/**", "src/types/**", "**/*.test.{ts,tsx}"],
thresholds: {
lines: 100,
functions: 100,
branches: 100,
statements: 100,
},
},
},
});