Public: anyone can read this; the crew can change it.
test/credentials.test.ts runs in under 10 s, every test under 1 s, proving what it proves today #10228
commented
Reviewed pull #10232 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/credentials.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.
For: #1242 (every test fast; the gate runs every test). Replaces #1335, parked since it was written. Measured 2026-11-09 with
bun test test/credentials.test.tsin the crew sandbox on main 53c8af98b: 7.19 s for 6 tests; #1335 named "a crew run on the platform's token > is counted under platform (env), moving while it runs" at 5.58 s alone, so the file passes its 10 s budget only while one test breaks the 1 s budget.Done looks like:
bun test test/credentials.test.tsreports 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.Files: test/credentials.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.