forked from nirholas/crypto-vision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
35 lines (33 loc) · 1.01 KB
/
vitest.config.ts
File metadata and controls
35 lines (33 loc) · 1.01 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
import { defineConfig } from "vitest/config";
import path from "path";
import { fileURLToPath } from "url";
import tsconfigPaths from "vite-tsconfig-paths";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [tsconfigPaths()],
resolve: {
alias: {
"@/": path.resolve(__dirname, "src") + "/",
},
},
test: {
environment: "node",
include: ["tests/**/*.test.ts", "src/lib/__tests__/**/*.test.ts", "src/routes/__tests__/**/*.test.ts", "src/sources/__tests__/**/*.test.ts"],
exclude: ["node_modules", "dist", "apps", "packages", "tests/e2e/**"],
testTimeout: 10_000,
hookTimeout: 10_000,
restoreMocks: true,
sequence: { shuffle: false },
coverage: {
provider: "v8",
include: ["src/lib/**/*.ts", "src/routes/**/*.ts", "src/sources/**/*.ts"],
exclude: ["**/*.test.ts", "**/__tests__/**"],
thresholds: {
statements: 50,
branches: 40,
functions: 45,
lines: 50,
},
},
},
});