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

Custom hook props wont update though props are updated #2506

Open
2 of 13 tasks
RoeiRom opened this issue Mar 11, 2021 · 0 comments
Open
2 of 13 tasks

Custom hook props wont update though props are updated #2506

RoeiRom opened this issue Mar 11, 2021 · 0 comments

Comments

@RoeiRom
Copy link

RoeiRom commented Mar 11, 2021

Current behavior

My hook uses the old parameters instead of the new one although I use the wrapper.update method.
Only change test fails

Link to my repository: https://github.com/RoeiRom/testing-updates

Fails only in node 8: https://github.com/RoeiRom/testing-updates/runs/2088277860

Expected behavior

Hook props to be updated

API

  • shallow
  • mount
  • render

Version

library version
enzyme 3.11.0
react 16.11.1
react-dom 16.11.1
react-test-renderer not existing
adapter (below) 1.15.6

Adapter

  • enzyme-adapter-react-16
  • enzyme-adapter-react-16.3
  • enzyme-adapter-react-16.2
  • enzyme-adapter-react-16.1
  • enzyme-adapter-react-15
  • enzyme-adapter-react-15.4
  • enzyme-adapter-react-14
  • enzyme-adapter-react-13
  • enzyme-adapter-react-helper
  • others ( )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant