-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathvitest.config.ts
More file actions
62 lines (61 loc) · 2.03 KB
/
vitest.config.ts
File metadata and controls
62 lines (61 loc) · 2.03 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { defineConfig } from "vitest/config"
import path from "path"
export default defineConfig({
esbuild: {
jsx: "automatic",
jsxImportSource: "react",
},
test: {
environment: "jsdom",
setupFiles: ["./tests/setup.ts"],
globals: true,
include: ["tests/unit/**/*.test.ts", "tests/unit/**/*.test.tsx"],
coverage: {
provider: "v8",
reporter: ["text-summary", "json-summary", "lcov"],
all: true,
include: [
"src/**/*.{ts,tsx}",
],
exclude: [
"**/*.d.ts",
"tests/**",
"node_modules/**",
".next/**",
"src/**/*.test.{ts,tsx}",
"src/**/__tests__/**",
"src/**/types/**",
"src/app/**",
"src/lib/server/**",
// Complex mission/structure components - UI compositions with extensive deps
"src/components/deployment/missions/structures/Astronomers/**",
"src/components/deployment/missions/structures/Meteorologists/**",
"src/components/deployment/missions/structures/BasePlate.tsx",
"src/components/deployment/missions/structures/Stardust/Journal.tsx",
// Complex telescope classification viewport
"src/components/classification/telescope/blocks/**",
// Complex project mission shells
"src/components/projects/Telescopes/Sunspots/SunspotShell.tsx",
"src/components/profile/setup/ProfileSetup.tsx",
"src/components/sections/Section.tsx",
// Provider/PWA with browser-specific APIs
"src/components/providers/PostHogProvider.tsx",
"src/components/pwa/PWAPrompt.tsx",
// Complex annotation logic with browser canvas/touch APIs
"src/components/projects/(classifications)/Annotating/useAnnotatorLogic.tsx",
],
thresholds: {
lines: 4,
functions: 60,
branches: 70,
statements: 4,
},
},
},
resolve: {
alias: [
{ find: "@/src", replacement: path.resolve(__dirname, "src") },
{ find: "@", replacement: path.resolve(__dirname, "src") },
],
},
})