Reputation: 677
I am trying to test a React component with Mocha/Enzyme which relies on a child component and one of it's child components as part of the test. I get an error related to this. My question (for now) isn't about the error but about the "context" options of mount().
I can't find anywhere where these options are explained in any reasonable detail. I don't know what values they are supposed to take and how they relate to my components. Is there a tutorial somewhere, a blog post or something which explains these options for mount() in detail?
Upvotes: 3
Views: 1227
Reputation: 2188
https://github.com/airbnb/enzyme/blob/master/docs/api/mount.md Is this what you need to perform?
Upvotes: 1