davidmfoley / enzyme-adapter-react-16-with-shallow-effects

Enzyme adapter with support for effects with shallow rendering
MIT License
3 stars 1 forks source link

fix: useEffect check dependencies #2

Closed thejuan closed 3 years ago

thejuan commented 3 years ago

sets the last value of dependencies so we can check if they have changed.

davidmfoley commented 3 years ago

Thanks @thejuan -- BTW you might be interested in https://github.com/davidmfoley/isolate-components/ -- component testing like shallow but with (much more robust) support for hooks.

thejuan commented 3 years ago

@davidmfoley Thanks I'll take a look, does it support snapshots? Are you able to publish this fix?