Only the tests from the first file (test1.test.js in this case) are run. The tests from the second file are not discovered or executed.
test2.test.js:
✓ sub1 [0.04ms]
✓ sub2 [0.04ms]
test1.test.js:
2 pass
0 fail
Ran 2 tests across 2 files. [23.00ms]
Additional information
This issue does not occur if I import the test function directly from "bun:test" in each test file, instead of using my test factory (which is just a re-exported test in this example).
What version of Bun is running?
1.1.12+43f0913c3
What platform is your computer?
Linux 5.15.0-107-generic x86_64 x86_64
What steps can reproduce the bug?
bun test
What is the expected behavior?
All tests from all test files should be executed.
What do you see instead?
Only the tests from the first file (
test1.test.js
in this case) are run. The tests from the second file are not discovered or executed.Additional information
This issue does not occur if I import the
test
function directly from "bun:test" in each test file, instead of using my test factory (which is just a re-exportedtest
in this example).