AgentSkillsCN

Bun Run tests in watch mode with Bun

使用 Bun 以监听模式运行测试

SKILL.md
--- frontmatter
name: Bun Run tests in watch mode with Bun
description: 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
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 for complete documentation on the test runner.