-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.smoke.config.ts
More file actions
43 lines (37 loc) · 937 Bytes
/
vitest.smoke.config.ts
File metadata and controls
43 lines (37 loc) · 937 Bytes
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
/**
* Vitest Smoke Test Configuration
*
* Post-build deployment verification.
* Answers: "Does the built artifact actually work?"
*
* Two modes:
* npm run test:smoke:free — CI-safe, no external services
* npm run test:smoke:pro — Requires live Supabase, <15s
*
* Run with: npm run test:smoke
*/
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
include: ["tests/smoke/**/*.test.ts"],
exclude: [
"tests/unit/**",
"tests/integration/**",
"tests/performance/**",
"tests/e2e/**",
],
// Smoke tests should be FAST — 15s timeout per test
testTimeout: 15_000,
hookTimeout: 15_000,
// Run serially — single MCP server process
pool: "forks",
poolOptions: {
forks: {
singleFork: true,
},
},
environment: "node",
// No retries — smoke tests must be deterministic
retry: 0,
},
});