-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
unmount regression in 3.4.0 #1880
Comments
I'm a little confused; what calls |
I'm using chai-enzyme for that. Digging into that code, it seems like that may be the source of the issue: chai-enzyme is checking that the enzyme
So is that an enzyme regression, an intended change, and/or an implementation detail which chai-enzyme should perhaps not be leveraging? |
It looks like the change was made in #1498 - specifically, this line was removed, which (imo incorrectly) forced the length to be In other words, I think it's an intentional bug fix - and as far as chai-enzyme goes, i think they were unintentionally relying on the erroneous behavior to have Could you rewrite your test case to use |
@ZebraFlesh closing; happy to reopen if you can make the change in my previous comment and there's something we can fix. |
Current behavior
Using enzyme 3.3.0, it is possible to do the following:
When upgrading to 3.4.0, the last line now fails with
Error: Method “name” is only meant to be run on a single node. 0 found instead.
Indeed, addingconsole.log(wrapper.name())
after the unmount call results in the same error.Expected behavior
Unmounted wrapper continues to function as expected in 3.3.0
Your environment
API
Version
Adapter
The text was updated successfully, but these errors were encountered: