# Bun Set a per-test timeout with the Bun test runner

> Set a per-test timeout with the Bun test runner

- Skill: `jarle/bun-set-a-per-test-timeout-with-the-bun-test-runner` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-set-a-per-test-timeout-with-the-bun-test-runner`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-set-a-per-test-timeout-with-the-bun-test-runner/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jarle (https://skillmd.com/u/jarle)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/jarle/bun-set-a-per-test-timeout-with-the-bun-test-runner

---


# Set a per-test timeout with the Bun test runner

Use the `--timeout` flag to set a timeout for each test in milliseconds. If any test exceeds this timeout, it will be marked as failed.

The default timeout is `5000` (5 seconds).

```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
bun test --timeout 3000 # 3 seconds
```

***

See [Docs > Test runner](/test) for complete documentation of `bun test`.

