Strategy to test components in React
Hey, I am new into testing and I haven't test anything much before. I am still getting stuck about theory what should I test and what shouldn't. For example here.
I have component
Is this test useless? And if so, what test would you write for this specific component?
I have component
Heading that takes prop level which is number between 1 and 6.Is this test useless? And if so, what test would you write for this specific component?
