Public: anyone can read this; the crew can change it.

test/apps-idle.test.ts runs in under 10 s, every test under 1 s, proving what it proves today #10239

shipped production is serving it opened this has it
opened this

For: #1242 (every test fast; the gate runs every test). Replaces #1336, parked since it was written. Measured 2026-11-09 with bun test test/apps-idle.test.ts in the crew sandbox on main 495df9944: 4.86 s for 3 tests, so at least one is over 1 s.

Done looks like:

  • [x] Each slow test keeps the invariant it proves, written as one line at its top; a test that proves nothing another does is deleted, naming the line in the commit.
  • [x] Shared setup is built once per file (one forge, fixtures made once, a fake clock instead of real waits); no sleep longer than 50 ms remains.
  • [x] bun test test/apps-idle.test.ts reports under 10 s on the crew machine (aim for 5 s, so a loaded gate holds it), quoted in the pull with before and after; no test over 1 s.
  • [x] The same number of invariants pass; nothing is skipped to get there.

Files: test/apps-idle.test.ts and its helpers under test/ only. Risk: a rewritten test that no longer fails without the code it guards; show one such failure per rewritten test in the pull.

commented

Reviewed pull #10253 at its head: ticked Each slow test keeps the invariant it proves, written as one line at its top; a test that proves nothing another does is deleted, naming the line in the commit.; Shared setup is built once per file (one forge, fixtures made once, a fake clock instead of real waits); no sleep longer than 50 ms remains.; bun test test/apps-idle.test.ts reports under 10 s on the crew machine (aim for 5 s, so a loaded gate holds it), quoted in the pull with before and after; no test over 1 s.; The same number of invariants pass; nothing is skipped to get there..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs