Apologies, but I couldn't find a more minimal reproduction of the issue outside of my current side project. However, it should be pretty fast to clone it and run the tests.
The tests do not pass with 100% code coverage. Bun does not report any lines missed.
Through selectively commenting out code, I've narrowed down the issue to line 106 of parse-fen.ts. Commenting out this line and its surrounding if statement fixed the code coverage report, but makes a couple of my tests fail.
I can add a console.log statement before line 106 and see that it runs when running bun test --coverage.
What version of Bun is running?
1.0.28+705638470
What platform is your computer?
Darwin 23.2.0 x86_64 i386
What steps can reproduce the bug?
Apologies, but I couldn't find a more minimal reproduction of the issue outside of my current side project. However, it should be pretty fast to clone it and run the tests.
git clone --depth 1 --branch bun-code-coverage-issue https://github.com/LandonSchropp/chess-fns
cd chess-fns
bun install
bun test --coverage
What is the expected behavior?
The tests should pass with 100% code coverage.
What do you see instead?
The tests do not pass with 100% code coverage. Bun does not report any lines missed.
Through selectively commenting out code, I've narrowed down the issue to line 106 of parse-fen.ts. Commenting out this line and its surrounding
if
statement fixed the code coverage report, but makes a couple of my tests fail.I can add a
console.log
statement before line 106 and see that it runs when runningbun test --coverage
.Additional information
Have a nice day!