sorted issue with not being able to test the searchbar component whilst we used 'history' context to navigate. See react router testing docs https://reacttraining.com/react-router/web/guides/testing
So i think actual route testing won't be too hard.
Mainly got lost with trying to mock function calls to test when things were and weren't being called in different scenarios. Tried so many things but probably having google would of helped. I guess I'm better at algorithms and refactoring things without internet rather than testing react components...
sorted issue with not being able to test the searchbar component whilst we used 'history' context to navigate. See react router testing docs https://reacttraining.com/react-router/web/guides/testing So i think actual route testing won't be too hard.
Mainly got lost with trying to mock function calls to test when things were and weren't being called in different scenarios. Tried so many things but probably having google would of helped. I guess I'm better at algorithms and refactoring things without internet rather than testing react components...