Cypress Component testing code-coverage error. #20987
Unanswered
yanan5
asked this question in
Component Testing
Replies: 1 comment
-
I believe code coverage for component runner is not working in version 9. e2e runner works. Here's the repro repo: https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress I am waiting for version 10 to try both. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to set-up code-coverage for cypress component testing in react [create-react-app].





Node - v14.2.0, npm - 7.6.3 on macOS Monterey version 12.1
Following is the package.json dev-dependencies
cypress.json
commands
Plugins
I am getting the following error after adding code-coverage for Cypress Component testing.



Note: It happens for one of the spec file only. If I skip the spec, code coverage works fine.
Any help in debugging or fixing it would be helpful. Please find below the details with screenshot
which points to code instrumented by cypress.
Please let me know if you need more information.
Beta Was this translation helpful? Give feedback.
All reactions