How to unit test a React parent component logic, and check that a child component is passed the correct props. Test if a component is called with expected argument using React Testing Library.
Struggling to mock the Date in Jest using CRA? Need consistant global Date testing for React? This article provides the solution.