-
-
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
[TEST] Regression on CDU on setProps on shallow wrapped component #2027
Conversation
…ined, with and without state changes
Thanks! I've updated the tests and split out the "no state change" and "state change" cases, and added some more assertions. |
I suspect this is a bug in react's shallow renderer - I've filed facebook/react#15075 to investigate. |
I rebased this on top of #1981, which seems related, but one of the shallow tests still fails. |
Added |
Good catch :-) we still need to make the shallow test pass, though. Got any ideas for a fix? |
The new commit satisfies the failing test, but are there any other conditions/test cases we should cover? |
Probably :-) but if all the tests are passing, and it looks reasonable, let's merge it! |
Alrighty 👍 |
What would it take for this fix to get released to NPM? I think I just got bitten by this bug when updating dependencies |
I'm waiting on a few more PRs to land before publishing the next semver-minor of enzyme itself. |
@ljharb are you still waiting for more versions? It would be nice to get bugfixes out ASAP since the latest release is presumably broken. I'd be happy to do a branch of 3.9.0 with just this if it would get released as 3.9.1 |
I might be able to pull together a patch tomorrow; but there’s still a minor I’m hoping to land first. |
@ljharb any estimate of when this patch is going to make it to NPM? getting some test failures related to this issue after updating to 3.9.0 |
Is there any update on this? This is breaking our tests. |
Same here ... tests are failing because of this :( |
@ljharb seems like releases of things are going out, but not the main enzyme package itself. Any reason why there can't be a release? The latest version has been broken for 2 months while master has been fixed. Seems like it shouldn't be terrible to release a patch version of whatever is in master. |
Really need this fix to be released 😢 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@bdwain every main enzyme release potentially creates a flurry of new issues, so it is in fact quite terrible to release it before it's ready. I'm still planning to get a few fixes in before releasing v3.10. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
v3.10.0 has now been released. |
For #2020.