Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Jest V8 code coverage reporting #88

Merged
merged 1 commit into from
May 27, 2024
Merged

fix Jest V8 code coverage reporting #88

merged 1 commit into from
May 27, 2024

Conversation

kubikowski
Copy link
Owner

Description:

There is a bug between Jest and newer versions of V8, where code coverage of a single file is overwritten between separate tests, instead of being merged. So, a single file which is referenced in multiple tests will only report code coverage from the most recent test that was run.

In the case of this repository, the function (file) being under-reported was equivalence. Which is used to prove the efficacy of some other unit tests. So it was being reported as missing branch coverage.

Resources:

@kubikowski kubikowski added type: Bug something isn't working code: DevOps automate everything labels May 27, 2024
@kubikowski kubikowski added this to the v1.6.0 milestone May 27, 2024
@kubikowski kubikowski self-assigned this May 27, 2024
@kubikowski kubikowski merged commit 63b9465 into main May 27, 2024
3 checks passed
@kubikowski kubikowski deleted the jest branch May 27, 2024 04:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code: DevOps automate everything type: Bug something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant