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
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Current behavior is for
--detectLeaks
to report a leak for any--coverage
enabled test (which has at least one import)Reproduction Steps
Steps to repo:
yarn
yarn test:pass
(this isjest --detectLeaks module.spec.js
)yarn test:fail
(this isjest --detectLeaks module.spec.js --coverage
)What is the expected behavior?
Expect that
--detectLeaks
does not fail for minimal--coverage
testVersions
More information
Using the new detectLeaks feature I was able to create a minimal expample repo of a leak when ever coverage is enabled:
Screens
Pass:
Fail:
A few notes:
The text was updated successfully, but these errors were encountered: