how do I wait till child components loaded so I can check toMatchSnapshot whole Parent component?
<MyComponent>
<Child1 />
<Child2 />
</MyComponent>
//unit test
it('test parent component', () => {
let mycomponent = render(<MyComponent />)
expect(mycomponent.asFragment()).toMatchSnapshot()
})
render renders without child components. Children are loaded in e.g. 5 sec.. Is there a way to do it without mocking Children? I want them to be loaded themself ...