- All playbooks
- Run the test suite with bun test
Run the test suite with bun test
Move the pull request test run from Vitest to bun test, with test files keeping their vitest imports, as Ramp did for the full CI pipeline of Glass.
How Ramp used this technique
Read what Ramp changed and follow the original sources.
Run the test suite with bun test
On 20 November 2026 Pontus Abrahamsson, who builds Glass at Ramp, wrote: “Our full CI pipeline is now sub 1 min.” He listed eight changes. The first was the test runner: Vitest -> bun test. In the prompt he published for the same change, the test files keep their imports: “Test files keep their `vitest` imports.” The run is set up to flush out leaks between files: “Isolate modules, not processes, reset state after every file, and run in random order to flush out leaks.” His prompt also has old and new run side by side before each switch. The OPT84 recipe describes that same side-by-side swap to a native tool for lint, format and type-check steps.
2026: One of eight changes Pontus Abrahamsson, who builds Glass at Ramp, listed on 20 November 2026 in his post “Our full CI pipeline is now sub 1 min.” Source
- Use it when
- A pull request job runs Vitest, directly or through a package.json script, and the test step takes a noticeable share of the job.
- Before applying it
- bun test has to run every test file and report the same results as Vitest on this repository, so run both on the same commits and compare file counts, test counts and failures before removing Vitest.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookType-check with a native checker
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed
- Read OpenClaw’s playbookSelect only the tests and proofs a change can affect