-
Notifications
You must be signed in to change notification settings - Fork 11
/
vite.config.ts
44 lines (43 loc) · 1.17 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
35
36
37
38
39
40
41
42
43
44
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import viteTsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react(), viteTsconfigPaths()],
server: {
host: true,
port: 3000,
},
envPrefix: "FRONT_",
test: {
globals: true,
environment: "jsdom",
setupFiles: "./src/tests/setupTests.ts",
// Junit is needed for CircleCI test results
reporters: ["default", "junit"],
outputFile: {
junit: "./coverage/junit.xml",
},
coverage: {
exclude: [
".storybook/**",
"build/**",
"coverage/**",
"dist/**",
"node_modules/**",
"public/**",
"**/[.]**",
"**/*.d.ts",
"**/test?(s)/**",
"test?(-*).?(c|m)[jt]s?(x)",
"**/*{.,-}{test,spec}.?(c|m)[jt]s?(x)",
"**/__tests__/**",
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*",
"**/vitest.{workspace,projects}.[jt]s?(on)",
"**/.{eslint,mocha,prettier}rc.{?(c|m)js,yml}",
"**/mocks/**",
"src/views/Distributions/**",
],
},
},
});