# Bun Run tests in watch mode with Bun

> Run tests in watch mode with Bun

- Skill: `jarle/bun-run-tests-in-watch-mode-with-bun` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jarle/bun-run-tests-in-watch-mode-with-bun`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jarle/bun-run-tests-in-watch-mode-with-bun/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-run-tests-in-watch-mode-with-bun

---


# Run tests in watch mode with Bun

Use the `--watch` flag to run your tests in watch mode.

```sh terminal icon="terminal" theme={"theme":{"light":"github-light","dark":"dracula"}}
bun test --watch
```

***

This will restart the running Bun process whenever a file change is detected. It's fast. In this example, the editor is configured to save the file on every keystroke.

<Frame>
  ![Running tests in watch mode in
  Bun](https://github.com/oven-sh/bun/assets/3084745/dc49a36e-ba82-416f-b960-1c883a924248)
</Frame>

***

See [Docs > Test Runner](/test) for complete documentation on the test runner.

