The build-completes Tier-1 gate at tests/background/no-test-hooks-in-prod-bundle.test.ts:247 was racing vitest's default 5000ms it() ceiling. Plan 01-10 closure shipped the welcome page (commitsd48a715welcome mark +49f087fwelcome HTML/CSS/JS + 8 WOFF2 fonts) which slowed standalone `npm run build` from ~2.88s to ~5.28s. The exec-level BUILD_TIMEOUT_MS = 60_000 child-process bound was correctly declared at line 240, but the surrounding it() block had no timeout option, so the 5s default fired first and the 60s exec bound was never reachable. Surgical fix: add `, 30_000` 3rd arg to the it() call. 30s is ~6× the observed build duration and well below the 60s exec ceiling, so both bounds remain meaningfully active. SKIP_BUILD=1 env-var escape hatch untouched. Acceptance gates: - `npm test` (FULL, no SKIP_BUILD=1): 150/150 GREEN, exit 0 - `npx tsc --noEmit`: exit 0 - `npm run build`: exit 0 - Tier-1 grep gate: PASS (all 12 FORBIDDEN_HOOK_STRINGS asserted against dist/) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13 KiB
13 KiB