bunjs:testing
Write and fix Bun tests — bun:test surface, component tests over HTTP, doubles, coverage gating, flake control. Ships a tested harness, fake upstream and builders.
Part of bunjs.
4 reference documents, about 631 lines.
The skill itself does not contain them. It reads your question and names the one or two worth opening — which is the point, because loading everything below to answer one question would cost more than the answer is worth.
Overviews
| Document | Covers | Lines |
|---|---|---|
bun-test-api.md | bun:test API — MEASURED on Bun 1.3.10 | 165 |
database-testing.md | Testing against a real database | 203 |
external-services.md | Testing against other services and queues | 117 |
test-strategy.md | What to test, at what level | 146 |
Reading these
You do not open these yourself in normal use — /bunjs:testing picks for you. Read them
directly when you want the reference rather than the answer, or to check what the advice
is actually based on.