Skip to main content

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

DocumentCoversLines
bun-test-api.mdbun:test API — MEASURED on Bun 1.3.10165
database-testing.mdTesting against a real database203
external-services.mdTesting against other services and queues117
test-strategy.mdWhat to test, at what level146

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.