Open tvsbrent opened 2 years ago
I stumbled upon the same issue
Well that was "fun": https://github.com/focus-trap/tabbable/pull/692 (my journey upgrading from Cypress 9.x to 10.0.3), particularly foiled by this very issue.
In the end, it came down to this old code that was still referencing the now-missing dependency:
on(
'file:preprocessor',
require('@cypress/code-coverage/use-browserify-istanbul')
);
That needed to be replaced with the only one that remains in the 3.10.0 package now, which is @cypress/code-coverage/use-babelrc
...
Here's the commit message from the changes that finally got stuff working again:
cypress/code-coverage does NOT instrument the code for you...
https://github.com/cypress-io/code-coverage#instrument-unit-tests
Ah. Finally, circle right back to the original issue of the ellusive
`@cypress/code-coverage/use-browserify-istanbul` reference which
no longer exists in version 3.10.0 of `@cypress/code-coverage`.
The only thing cypress/code-coverage provides now is
`@cypress/code-coverage/use-babelrc`, which has peer dependencies
on webpack, babel-loader, babel/preset-env and babel/core.
After all those added, and babel.config.js configured under 'test'
env (and added `BABEL_ENV=test` to package.json 'test:coverage'
script that runs Cypress with coverage option, as well as GH ci.yml),
things are looking good locally with .nyc_output/out.json once again
generated.
Let's see if it works and reports in GH Actions now.
It is failing for me also, any alternate to fix this and get code coverage?
I have the same issue. It has been for almost one year. Does this issue have ignored?
This is made all the more confusing because the current docs still reference browserify as an option. Further, there is no indication in commit messages that this was removed, and it was removed on a minor release. At a minimum the Readme should be updated to not reference browserify as an option.
Any updates on this issue? I am trying to set this up in my project and facing the same issue now. Help anyone?
EDIT: am using cypress v12.17.2
+1 for "@cypress/code-coverage": "^3.12.39"
Logs and screenshots
Versions
Version
3.10.0
Describe the bug With the release of the 3.10.0 version of
@cypress/code-coverage
, theuse-browserify-istanbul
entry point is missing. In looking at the release, it appears this commit for Cypress 10 compatibility introduced it. However, the entrypoint is still referenced in theREADME
, so I'm assuming that removing that file was a breaking change intended for a major release.Link to the repo n/a