Testing React components
Frontend unit tests must treat the test subject, our React Component / page as a black box just like how an end user might. The closer the testing is to how a real user would interact with the app, higher the confidence we get when it is all green :)...
rohanbagchi.hashnode.dev2 min read