bun-test
Installation
SKILL.md
Bun Test Configuration
Set up Bun's built-in test runner with Jest-compatible APIs and significantly faster execution (3-10x faster than Jest).
What's new in Bun 1.4
--parallel— run tests in parallel across CPU cores (1.3.13)--isolate— run each test file in its own process (1.3.13)--shard— split test suite across CI runners (1.3.13)--changed— run only tests affected by changed files (1.3.13)--grep— filter tests by name pattern (1.3.6)--only-failures/--rerun-failures— rerun only failing tests (1.3.1)retry/repeats— per-test retry and repeat (1.3.9)- Fake timers —
useFakeTimers()for time-dependent tests (1.3.4) viglobal — globalvimock function (1.3.1)onTestFinishedhook — post-test assertions (1.3.2)--pass-with-no-tests— don't fail when no tests match (1.3.1)- JUnit XML output —
--reporter=junit(1.3.13)