Getting Started
Last updated
Was this helpful?
Last updated
Was this helpful?
Enzyme Context has peer dependencies on and . Make sure they are installed and set up correctly before proceeding.
Enzyme Context loves yarn
:
But npm
is fine too:
At TrialSpark, we do this in a module called test-utils/enzyme
, but you can put yours wherever you like:
The mount
/shallow
we created in step two doesn't really do anything that enzyme doesn't already do out-of-the-box. The next thing you should do is .