DEV Community

Discussion on: What programming best practice do you disagree with?

Collapse
 
niorad profile image
Antonio Radovcic

Wouldn't it make more sense to leave the JSX-render-testing to selenium and use unit-tests for the business-logic and other non-rendering-code?

Collapse
 
aturingmachine profile image
Vince

In reality if one of those child components have an emission you could grab them in your tests and force the emission, then ensure your component behaves as expected when a child emits a value.