I'm trying to shallow render a component to perform some basic unit tests.
The component I am doing this on has two child components which are rendered several times each depending on the parents props.
When querying the shallow rendered component, the child elements are being rendered also.. which is strange behaviour.
I am using Karma, Browserify, Jasmine and Enzyme, and can post the configs for each if needed. Has anybody seen similar behaviour before?
Aucun commentaire:
Enregistrer un commentaire