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
Hi All, I found a possible answer for this issues, my team move jest from version 23 to 26.6.3 at the time collectCoverageOnlyFrom was working fine but started to display untested files on the coverage report as soon as we move to the newer version, now the problem is related with how cache is manage, so adding a --no-cache after collectCoverageOnlyFrom solve it for me
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.
🐛 Bug Report
not able to run the coverage for one file please see #7427
To Reproduce
yarn jest src/components/MyComponent/MyComponent.test.tsx --coverage --collectCoverageOnlyFrom=src/components/MyComponent/MyComponent.tsx
Expected behavior
Display test result and coverage for a single file on screen, just for MyComponent.tsx
The text was updated successfully, but these errors were encountered: