Great post, really good take on the benefits and the purpose of testing!
You mentioned that if a prop name changes that you don't want your test to break, I think I may have misunderstood this but in order to render the component you would need to specify props so wouldn't a name change always break your tests?
I agree, I think it depends on the prop being changed, but I've definitely had tests break after prop name changes because I was specifically using that prop.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great post, really good take on the benefits and the purpose of testing!
You mentioned that if a prop name changes that you don't want your test to break, I think I may have misunderstood this but in order to render the component you would need to specify props so wouldn't a name change always break your tests?
I agree, I think it depends on the prop being changed, but I've definitely had tests break after prop name changes because I was specifically using that prop.