diff options
author | 2023-05-21 01:29:57 -0700 | |
---|---|---|
committer | 2023-05-21 01:29:57 -0700 | |
commit | 12b34c625833c7cff4ecb6ebd67b3872028f4a80 (patch) | |
tree | 700ae66cf8502965250757a5d22ec3ee20f863a5 /docs/test | |
parent | 34af34db9f3fbbe475422b203b16164d605368d5 (diff) | |
download | bun-12b34c625833c7cff4ecb6ebd67b3872028f4a80.tar.gz bun-12b34c625833c7cff4ecb6ebd67b3872028f4a80.tar.zst bun-12b34c625833c7cff4ecb6ebd67b3872028f4a80.zip |
Add watch mode page
Diffstat (limited to 'docs/test')
-rw-r--r-- | docs/test/hot.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/test/hot.md b/docs/test/hot.md new file mode 100644 index 000000000..a7604f3e5 --- /dev/null +++ b/docs/test/hot.md @@ -0,0 +1,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">"bun test --watch url" in a large folder with multiple files that start with "url" <a href="https://t.co/aZV9BP4eFu">pic.twitter.com/aZV9BP4eFu</a></p>— 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 %} |