-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
56 lines (48 loc) · 1.43 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
45
46
47
48
49
50
51
52
53
54
55
56
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig(({ mode }) => {
return {
base: '/burrito-builder/',
plugins: [react()],
// https://vitest.dev/config/
test: {
// https://vitest.dev/config/#mockreset
resetMocks: true,
// https://vitest.dev/config/#reporters
reporters: "verbose",
// https://vitest.dev/config/#environment
environment: "jsdom",
/**
* https://vitest.dev/config/#setupfiles
* They will be run before each test file.
*/
// setupFiles: ['./src/setupTests.tsx'],
/**
* https://vitest.dev/config/#coverage
* Pass-through options to https://github.com/bcoe/c8
*/
coverage: {
all: true,
src: ["src"],
lines: 70,
exclude: [
"src/**/*.d.ts",
"src/**/*.stories.*",
"src/__mocks__/**/*",
"src/mockApi/**/*",
"src/stories/**/*",
"src/lib/rtl-utils/**/*",
"src/util/axe-core-importer.ts",
],
include: ["src/**/*.{js,jsx,ts,tsx}"],
reporter: ["text", "html"],
},
/**
* https://vitest.dev/config/#watchexclude
* Default: ['node_modules', 'dist']
* Glob pattern of file paths to be ignored from triggering watch rerun.
*/
// watchExclude: ['dist', 'coverage', '.storybook', 'node_modules'],
},
};
});