aboutsummaryrefslogtreecommitdiff
path: root/docs/runtime/hot.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-18 02:07:41 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-18 02:07:41 -0700
commitdf0db54c58008d2a61a0c515a8611a231ae1d541 (patch)
treed98650c81c7b71c3f1b6116319a1d72d513ae3da /docs/runtime/hot.md
parent0fd493fd781cfaaa704f08751f4239dd36ec5492 (diff)
parent661355546a4658ea927bfd70698577c1db301243 (diff)
downloadbun-df0db54c58008d2a61a0c515a8611a231ae1d541.tar.gz
bun-df0db54c58008d2a61a0c515a8611a231ae1d541.tar.zst
bun-df0db54c58008d2a61a0c515a8611a231ae1d541.zip
Merge branch 'main' into jarred/brotli
Diffstat (limited to 'docs/runtime/hot.md')
-rw-r--r--docs/runtime/hot.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/runtime/hot.md b/docs/runtime/hot.md
index d68a9ebea..0797187de 100644
--- a/docs/runtime/hot.md
+++ b/docs/runtime/hot.md
@@ -7,7 +7,6 @@ Bun supports two kinds of automatic reloading via CLI flags:
Watch mode can be used with `bun test` or when running TypeScript, JSX, and JavaScript files.
-
To run a file in `--watch` mode:
```bash
@@ -17,7 +16,7 @@ $ bun --watch index.tsx
To run your tests in `--watch` mode:
```bash
-$ bun --watch test
+$ bun --watch test
```
In `--watch` mode, Bun keeps track of all imported files and watches them for changes. When a change is detected, Bun restarts the process, preserving the same set of CLI arguments and environment variables used in the initial run. If Bun crashes, `--watch` will attempt to automatically restart the process.
@@ -58,7 +57,7 @@ serve({
Running `bun test` in watch mode and `save-on-keypress` enabled:
```bash
-$ bun --watch test
+$ bun --watch test
```
![bun test gif](https://user-images.githubusercontent.com/709451/228396976-38a23864-4a1d-4c96-87cc-04e5181bf459.gif)