-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
50 lines (48 loc) · 1.66 KB
/
Copy pathvitest.config.ts
File metadata and controls
50 lines (48 loc) · 1.66 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
import path from "node:path"
import { defineConfig } from "vitest/config"
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"#imports": path.resolve(__dirname, "./test/mocks/imports.ts"),
"expo-apple-authentication": path.resolve(__dirname, "./test/mocks/expo-apple-authentication.ts"),
"expo-application": path.resolve(__dirname, "./test/mocks/expo-application.ts"),
"expo-auth-session": path.resolve(__dirname, "./test/mocks/expo-auth-session"),
"expo-constants": path.resolve(__dirname, "./test/mocks/expo-constants.ts"),
"expo-crypto": path.resolve(__dirname, "./test/mocks/expo-crypto.ts"),
"expo-notifications": path.resolve(__dirname, "./test/mocks/expo-notifications.ts"),
"expo-web-browser": path.resolve(__dirname, "./test/mocks/expo-web-browser.ts"),
"expo-speech": path.resolve(__dirname, "./test/mocks/expo-speech.ts"),
"react-native": path.resolve(__dirname, "./test/mocks/react-native.ts"),
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./test/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
reportsDirectory: "./coverage",
include: [
"src/**/*.{ts,tsx}",
"src/web/src/**/*.{ts,tsx}",
"src/server/**/*.{ts,tsx}",
"src/platform/cloudflare/src/**/*.{ts,tsx}",
],
exclude: [
"**/*.d.ts",
"**/*.test.{ts,tsx}",
],
},
exclude: [
"**/node_modules/**",
"**/dist/**",
"**/.worktrees/**",
"**/.output/**",
"**/.wxt/**",
"**/.claude/**",
"**/.specify/**",
],
},
})