enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.96k stars 2.01k forks source link

Custom hook props wont update though props are updated #2506

Open RoeiRom opened 3 years ago

RoeiRom commented 3 years ago

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

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