forked from vercel/workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
23 lines (22 loc) · 1.21 KB
/
Copy pathvitest.config.ts
File metadata and controls
23 lines (22 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { configDefaults, defineConfig } from 'vitest/config';
export default defineConfig({
test: {
testTimeout: 60_000,
// The e2e suites drive real deployments, so individual tests can lose
// timing races (queue delays, cold starts, watcher latency) that a
// second attempt absorbs. One CI retry keeps a single racy test from
// failing a 20+ minute matrix job; retried tests stay visible — the
// github-reporter annotates them and the PR comment lists them — so
// real races still get looked at. Harnesses where a failure is itself
// the signal (event-log-race-repro, benchmarks) pin `retry: 0` locally.
// Local runs keep retry at 0 so races reproduce while debugging.
retry: process.env.CI ? 1 : 0,
// Positional file arguments are regex filters, not paths, so
// `vitest run packages/core/e2e/x.test.ts` also matches
// `.claude/worktrees/<name>/packages/core/e2e/x.test.ts` when agent
// worktrees live inside the repo (see .gitignore). Those copies belong to
// other branches: they would run their own version of the suite against the
// same backend and overwrite the same result files.
exclude: [...configDefaults.exclude, '**/.claude/**'],
},
});