notes-on-testing
post
unit tests
Unit Tests differ from Functional(behavioural eg:react-testing-library) as instead of asserting on the hyrdated react tree, the assertions are made against the JS implementation. EG, clicking a button for a page redirect and then asserting on the history object rather than checking the hydrated-app. Let's assume and trust that React Router is already tested.