[{"data":1,"prerenderedAt":107},["ShallowReactive",2],{"term-b\u002Fbun-test":3,"related-b\u002Fbun-test":96},{"id":4,"title":5,"acronym":6,"body":7,"category":78,"description":79,"difficulty":80,"extension":81,"letter":82,"meta":83,"navigation":84,"path":85,"related":86,"seo":90,"sitemap":91,"stem":94,"subcategory":6,"__hash__":95},"terms\u002Fterms\u002Fb\u002Fbun-test.md","Bun Test",null,{"type":8,"value":9,"toc":71},"minimark",[10,15,35,39,64,68],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18,19,23,24,23,27,30,31,34],"p",{},"Bun test is Bun's built-in test runner — Jest-compatible but fast enough to make you question every life choice that led to Vitest. You write the same ",[20,21,22],"code",{},"describe()",", ",[20,25,26],{},"it()",[20,28,29],{},"expect()"," tests you already know. Bun just runs them absurdly quickly. No config. No install. Just ",[20,32,33],{},"bun test",". It's what happens when a runtime is built by people who were genuinely angry at how slow existing tools were.",[11,36,38],{"id":37},"real-talk","Real Talk",[16,40,41,43,44,23,47,23,50,23,53,23,56,59,60,63],{},[20,42,33],{}," is Bun's native test runner, shipping as part of the Bun runtime (no separate install). It supports the Jest\u002FVitest API surface (",[20,45,46],{},"describe",[20,48,49],{},"it",[20,51,52],{},"test",[20,54,55],{},"expect",[20,57,58],{},"beforeEach",", lifecycle hooks, mocking via ",[20,61,62],{},"jest.mock","). It runs tests in parallel using Bun's native worker threads and executes TypeScript and JSX natively without a build step. Benchmark comparisons consistently show 10–40x speedups over Jest on large test suites.",[11,65,67],{"id":66},"when-youll-hear-this","When You'll Hear This",[16,69,70],{},"\"Switched from Jest to bun test — our 800-test suite went from 45 seconds to 3.\" \u002F \"Bun test is Jest-compatible enough that migration was copy-paste and done.\"",{"title":72,"searchDepth":73,"depth":73,"links":74},"",2,[75,76,77],{"id":13,"depth":73,"text":14},{"id":37,"depth":73,"text":38},{"id":66,"depth":73,"text":67},"testing","Bun test is Bun's built-in test runner — Jest-compatible but fast enough to make you question every life choice that led to Vitest.","beginner","md","b",{},true,"\u002Fterms\u002Fb\u002Fbun-test",[87,88,89],"Bun","Jest","Test Runner",{"title":5,"description":79},{"changefreq":92,"priority":93},"weekly",0.7,"terms\u002Fb\u002Fbun-test","KCLjFkzme6N_RtsB-ur-HbIlBRXGc0CyB6pPa9jtyyY",[97,101,104],{"title":87,"path":98,"acronym":6,"category":99,"difficulty":80,"description":100},"\u002Fterms\u002Fb\u002Fbun","backend","Bun is a JavaScript runtime (like Node.js) that does everything faster — starting up, installing packages, running tests, bundling code.",{"title":88,"path":102,"acronym":6,"category":78,"difficulty":80,"description":103},"\u002Fterms\u002Fj\u002Fjest","Jest is the most popular JavaScript testing framework.",{"title":89,"path":105,"acronym":6,"category":78,"difficulty":80,"description":106},"\u002Fterms\u002Ft\u002Ftest-runner","A test runner is the thing that actually runs your tests and tells you which ones passed and which ones failed.",1775560881849]