Test New Component State
Simulating Component State in Enzyme
With Enzyme, we can simulate and test different component contexts. We can use the setState() method to change the state of our component, and then we can test that it renders correctly under the new state.
In App...
nothanii.hashnode.dev6 min read