also looking at this
Make watch mode rerun affected tests
#28
5 files
+621
-105
| @@ -882,6 +882,17 @@ The async, snapshot, progress, and timeout examples are compile-checked rather | ||
| 882 | 882 | than executed by this step because they intentionally demonstrate delays, |
| 883 | 883 | generated files, interactive output, or failure handling. |
| 884 | 884 | |
| 885 | ## Watch Mode | |
| 886 | ||
| 887 | ```bash | |
| 888 | zig-test --test-dir tests --watch | |
| 889 | ``` | |
| 890 | ||
| 891 | After the initial full run, watch mode reruns changed tests or tests affected by | |
| 892 | relative Zig imports. It falls back to the full suite when dependency data is | |
| 893 | incomplete. Type `r` and press Enter to force a full rerun. See | |
| 894 | [docs/watch-mode.md](docs/watch-mode.md) for selection and debounce behavior. | |
| 895 | ||
| 885 | 896 | ## Requirements |
| 886 | 897 | |
| 887 | 898 | - The exact Zig development build recorded in [`.zig-version`](.zig-version) |
| @@ -905,6 +916,7 @@ Comprehensive guides and API documentation: | ||
| 905 | 916 | - **[Mocking & Spying](docs/mocks.md)** - Complete Jest-compatible mocking API with 20+ methods |
| 906 | 917 | - **[Snapshot Testing](docs/snapshots.md)** - Multiple formats, named snapshots, and diff visualization |
| 907 | 918 | - **[Date & Time Mocking](docs/dates-and-times.md)** - Control time with `setSystemTime()` and Jest-compatible APIs |
| 919 | - **[Watch Mode](docs/watch-mode.md)** - Affected-test selection, safe fallbacks, and full reruns | |
| 908 | 920 | |
| 909 | 921 | ### Additional Resources |
| 910 | 922 | |