How do you go about testing components which pass callbacks to children with shallow render?
E.g. I might have a component, something like:
In our current Mocha/JSDOM tests, I would reach into the child components props and trigger the onChange callback with an attribute. I would then inspect the re-rendered component to check it matched what I expected.
With the shallow testing this goes out the window as the child doesn't exist. How are others testing shallow rendered components that have callbacks?