You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bun test --coverage reports only 50% function coverage
bun test v1.0.11 (f7f6233e)
index.test.ts:
✓ Test > should test [0.07ms]
-----------|---------|---------|-------------------
File | % Funcs | % Lines | Uncovered Line #s
-----------|---------|---------|-------------------
All files | 50.00 | 100.00 |
index.ts | 50.00 | 100.00 |
-----------|---------|---------|-------------------
1 pass
0 fail
1 expect() calls
Ran 1 tests across 1 files. [12.00ms]
Additional information
Upon adding an empty constructor to the class, the reported function coverage increased to 100%. This occurred without any modifications to the test case.
What version of Bun is running?
1.0.11
What platform is your computer?
Linux 6.5.6-76060506-generic x86_64 x86_64
What steps can reproduce the bug?
index.ts
index.test.ts
What is the expected behavior?
I would expect 100% function coverage when running
bun test --coverage
What do you see instead?
bun test --coverage
reports only 50% function coverageAdditional information
Upon adding an empty constructor to the class, the reported function coverage increased to 100%. This occurred without any modifications to the test case.
bun test --coverage
printsThe text was updated successfully, but these errors were encountered: