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

Failing test suits with enzyme since 1.0.0 #3999

Open
eladonline opened this issue Aug 12, 2024 · 2 comments
Open

Failing test suits with enzyme since 1.0.0 #3999

eladonline opened this issue Aug 12, 2024 · 2 comments

Comments

@eladonline
Copy link

Hello, since the latest update to version 1.0.0
enzyme tests suits started failing
failure message
image

I solved it by downgrading cheerio to version "1.0.0-rc.12"
for everyone who have same problem to solve this I override the package dependency
just add this to the package.json
image

@mjancarik
Copy link

Hello,

Could you return back export declaration for lib/utils to package.json caab069?

@Filipoliko
Copy link

Filipoliko commented Aug 12, 2024

For us, there was a bit different error message, but the suggested hotfix resolved our issue.

  ● Test suite failed to run
    Cannot find module 'cheerio/lib/utils' from '../node_modules/enzyme/build/Utils.js'
    Require stack:
      /builds/cns/campus/backend/node_modules/enzyme/build/Utils.js
      /builds/cns/campus/backend/node_modules/enzyme/build/ReactWrapper.js
      /builds/cns/campus/backend/node_modules/enzyme/build/index.js
      jest.setup.js
      at Resolver._throwModNotFoundError (../node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (../node_modules/enzyme/build/Utils.js:84:14)

As enzyme is not being developed anymore, this might be very big problem for all enzyme library users (just about 1.8 mil downloads in the past week).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants