Files
reverse-engineering-anything/tests/support/testDeadlines.ts
T
87743d67f5 test: check the deadlines Vitest applies to collected tests
Probes in a source and a built project read each collected test's
deadline, including test, suite, and module long-running tags, so a
change in project inheritance or tag resolution fails directly. Both
the policy and the probes read one set of base deadlines.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:27:07 +08:00

15 lines
592 B
TypeScript

/**
* Hang-detection deadlines that the Vitest project policy applies. Tests do not
* restate them; see docs/development/testing.md#developer-commands.
*/
export const TEST_DEADLINE_MS = { source: 30_000, built: 120_000 } as const;
/** Deadline for a bounded workload tagged `long-running`. */
export const LONG_RUNNING_DEADLINE_MS = 300_000;
/** Coverage instrumentation slows every lane, so it scales every deadline. */
export const COVERAGE_DEADLINE_SCALE = 2;
/** Hosted CI runs a worker per core, so it also scales every deadline. */
export const HOSTED_RUNNER_DEADLINE_SCALE = 2;