Closed alasdairhurst closed 3 years ago
Wasn't expecting there to be an issue for an older version of cheerio, looks like there hasn't been an enzyme release since the fix was made here 5 months back. Closed.
Indeed. Duplicate of #2516.
Temporary workaround is to pin cheerio in your own devDeps.
Current behavior
https://github.com/enzymejs/enzyme/blob/master/packages/enzyme/package.json#L42 As seen in the link above, enzyme is supposed to depend on
cheerio
1.0.0-rc3. Not that it's an issue, but it's obviously intentionally pinned to that specific version. (wouldn't want to pick up any prerelease breaking changes). Unfortunately it looks like the latest is being picked up regardless. Just hit an issue after cheerio published 1.0.0-rc7They have very quickly fixed this issue, but it made it clear that something unintentional is happening in enzme for it to get installed as a dependency ;)
Expected behavior
cheerio 1.0.0-rc3 gets installed as a dependency of enzme (or a later version, but pinned)
Your environment
Not really applicable but will provide some details
Node/NPM
Node: 12.18.3 NPM: 6.14.12
API
Version
Adapter