Open aralroca opened 1 day ago
If you do bun test --bail=10
it should work.
The issue arises because --bail is optional and can function without extra arguments. This ambiguity makes it unclear whether space-separated arguments are part of the flag or a separate test filter.
bun test --bail 10
: does the user mean--bail=10
and filter by tests that contain"10"
, or is it--bail=10
and run all tests
While this is something we’d like to fix in the future, I’m not aware of a time when the space-separated version worked. I’ll update the documentation to reflect the current behavior.
Ok, cool, then probably changing the documentation is enough
What version of Bun is running?
1.1.37-canary.10+61a3f0859
What platform is your computer?
No response
What steps can reproduce the bug?
Meanwhile with
bun test
all the tests pass ok, withbun test --bail 10
is looking for files with 10, so is not working.What is the expected behavior?
Just run
bun test --bail 10
What do you see instead?
No response
Additional information
No response