forked from EdgeTX/buddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.config.mts
43 lines (41 loc) · 1.12 KB
/
vitest.config.mts
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
/* eslint-disable import/no-extraneous-dependencies */
/// <reference types="vitest" />
/// <reference types="vite/client" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [react(), tsconfigPaths({ projects: ["tsconfig.base.json"] })],
test: {
globals: true,
environment: "jsdom",
setupFiles: ["@vitest/web-worker", "./.vitest/setupAfterEnv.ts"],
clearMocks: true,
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/cypress/**",
"**/.{idea,git,cache,output,temp,.vscode}/**",
"**/e2e/**",
"**/test-utils/**",
],
coverage: {
reporter: ["lcov", "html", "text"],
all: true,
include: ["**/src/**/*.{ts,tsx}"],
exclude: [
"**/e2e/**",
"**/node_modules/**",
"**/stories/**",
"**/__tests__/**",
"**/*.spec.{ts,tsx}",
"**/__generated__/**",
"**/dist/**",
"**/build/**",
"**/*.d.ts",
"**/.storybook/**",
"**/test-utils/**",
],
},
},
});