bun test
exits with code 0 when the entrypoint fails to resolve (ModuleNotFound)
#15208
Labels
bun test
exits with code 0 when the entrypoint fails to resolve (ModuleNotFound)
#15208
What version of Bun is running?
1.1.34+5e5e7c60f
What platform is your computer?
Darwin 24.1.0 arm64 arm
What steps can reproduce the bug?
bun test ./doesNotExist.ts
echo $?
What is the expected behavior?
Exit code should be a value other than
0
.What do you see instead?
Exit code is
0
.Additional information
This is kind of a meta-test failure, but should still be considered an error state -- otherwise, CI tools that are expecting an exit 0 when tests pass may pass code that hasn't been tested (but that the programmer is expecting to have been tested).
The text was updated successfully, but these errors were encountered: