Open DoctorGester opened 1 year ago
MacOS Monterey 12.6.1
This is happening for two reasons:
1) expect
, test
and others are only auto-imported inside test files. Their use in util.ts
is not a test file. I suspect we'll need to change these in the future to work more similar to Jest for compatibility
2) The above causes an exception, and some code somewhere appears to be ignoring the exception which leads to the error above
@Jarred-Sumner I have tried this again with 1.1
. I have replaced all expect
and test
calls with bun:test
imports. After another bunch of changes due to different testing framework bugs I now have tests passing. This specific test however still hangs and eats 100% CPU even though there is no error in console.
What version of Bun is running?
1.0.4+745b6b94ee56cad24d475799690cc9a89957d15b
What platform is your computer?
Darwin 22.6.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
Bun test completes
What do you see instead?
Bun test hangs forever while fully using a single core on
nullish-coalescing with generic lhs
testAdditional information
No response