To automatically re-run tests when files change, use the --watch
flag:
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.
"bun test --watch url" in a large folder with multiple files that start with "url" pic.twitter.com/aZV9BP4eFu
— Jarred Sumner (@jarredsumner) March 29, 2023