-
Notifications
You must be signed in to change notification settings - Fork 48
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
💚 Fixing unit tests #38
💚 Fixing unit tests #38
Conversation
Using latest version of enzyme with patched version of cheerio
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@VadimZvf thanks for pushing this! I tried to update cheerio but tests are still failing, any idea why? |
We should use exact cheerio version
Oops... We should use exact version "~1.0.0-rc.3" → "1.0.0-rc.3" Deps with "~1.0.0-rc.3"
With exact version "1.0.0-rc.3"
|
Also we should put it into devDependencies 😬 |
You fixed 🙌 |
@VadimZvf Good job with locking |
Unit tests don't pass in the master branch.
They fail with the next error:
This error happens because of a broken pear dependancy of enzyme.
Enzyme imports "cheerio" package and uses a default export 👉 here
But cheerio doesn't have any default export anymore 👉 here
The solution - update the enzyme version.
However, after the update we receive an another error. Enzyme imports some internal code from cheerio and it breaks the build.
The fix is to use a RC version of cheerio. Details - cheeriojs/cheerio#2547