DEV Community

Discussion on: Shallow rendering & React Hooks. And why shallow rendering is good

Collapse
 
mrmicrowaveoven profile image
Benjamin Zagorski

This seems like an awesome addition. Currently dealing with the frustration of testing Components without useEffect.

I'm getting a "beforeEach is not defined" error when I try to implement the library (enable-hooks.js, line 27. Is anyone else running into this? I really want to try this and it looks like this will get in the way.