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

A new app's own test suite runs in under 3 s, and test/scaffold.test.ts holds it there #3670

shipped production is serving it opened this has it
opened this

For building apps fast: every deploy of every app runs the scaffold's own bun test beside the process ("serving — still verifying its tests" in src/apps/runtime.ts). Every agent pull on an app waits on that suite too. The suite grows with the scaffold (src/apps/scaffold.ts, about 6,000 lines), and nothing bounds how long it takes.

Done:

  • [ ] test/scaffold.test.ts times the written-out app's bun test and fails above 3 s. The measured time is printed.
  • [ ] Whatever is slower than that inside the scaffold's suite is made faster: one server per file, no sleeps, no real timers where a fake clock serves. The suite still proves every guarantee in docs/APPS.md's table.
  • [ ] docs/APPS.md says the budget in one line.

Files: src/apps/scaffold.ts (its test files), test/scaffold.test.ts, docs/APPS.md. Risk: do not weaken a guarantee to meet the budget. Fits: a builder who knows the scaffold.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs