Three Ways to Test Angular Components
Victor Savkin

IMO in integration tests we want to mock all of our children own components.

Since we want to test the interaction with our children, but we do not care how they render or their logic.

We can create mock versions of the children which exposes the same interface as the real children (inputs\outputs) and then check if we passed the right values to our children and hooked the right hook on their events.

Show your support

Clapping shows how much you appreciated Jonathan Tamary’s story.