I am trying to unit test (with React Testing Library) that my redirect occurs as expected and as actually occurs in practise, however it doesn\'t seem that anything is actually