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?
https://github.com/airbnb/enzyme/blob/master/docs/api/mount.md Is this what you need to perform?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With