aboutsummaryrefslogtreecommitdiff
path: root/docs/test/hot.md
blob: a7604f3e5fe8cdf65aa6a999812cacda87d2bd7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
To automatically re-run tests when files change, use the `--watch` flag:

```sh
$ bun test --watch
```

Bun will watch for changes to any files imported in a test file, and re-run tests when a change is detected.

It's fast.

{% raw %}

<blockquote class="twitter-tweet"><p lang="en" dir="ltr">&quot;bun test --watch url&quot; in a large folder with multiple files that start with &quot;url&quot; <a href="https://t.co/aZV9BP4eFu">pic.twitter.com/aZV9BP4eFu</a></p>&mdash; Jarred Sumner (@jarredsumner) <a href="https://twitter.com/jarredsumner/status/1640890850535436288?ref_src=twsrc%5Etfw">March 29, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

{% /raw %}