The Right Way to Test React Components
Stephen Scott
4.3K23

I’m trying to understand why “A div is always rendered” is not considered a brittle test, which is just testing what the application is doing (rule #1).

If my designer comes along and decides that it should be a “p” tag, now that test is going to break.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.