test: add more tests
This commit is contained in:
@@ -11,3 +11,11 @@ bun_dev(
|
||||
name = "web_dev",
|
||||
entry_point = "main.ts",
|
||||
)
|
||||
|
||||
bun_dev(
|
||||
name = "web_dev_hot_restart",
|
||||
entry_point = "main.ts",
|
||||
no_clear_screen = True,
|
||||
restart_on = ["README.md"],
|
||||
watch_mode = "hot",
|
||||
)
|
||||
|
||||
@@ -9,3 +9,12 @@ bazel run //examples/basic:web_dev
|
||||
```
|
||||
|
||||
This starts Bun in watch mode for `main.ts`.
|
||||
|
||||
For the hot-reload launcher variant:
|
||||
|
||||
```bash
|
||||
bazel run //examples/basic:web_dev_hot_restart
|
||||
```
|
||||
|
||||
This starts Bun with `watch_mode = "hot"`, disables screen clearing, and wires
|
||||
`README.md` through `restart_on` to exercise the custom restart launcher path.
|
||||
|
||||
Reference in New Issue
Block a user