The CI Challenge: save 10% or get $1,000

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