4 ms·
I agree with this sentiment; I try to not test anything that renders. I don't want to test React's correct handling of the DOM and I don't want tests that fail
by ng12 7y ago
I agree with this sentiment; I try to not test anything that renders. I don't want to test React's correct handling of the DOM and I don't want tests that fail if someone changes a div to a span. The stuff I'm looking to test tends to be the code that naturally feels like it belongs in a helper function.