Comment tester Usehistory en plaisantant

 const historyMock = { push: jest.fn(), location: {}, listen: jest.fn() };
Plain Pigeon