Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to test usehistory in jest

 const historyMock = { push: jest.fn(), location: {}, listen: jest.fn() };
 
PREVIOUS NEXT
Tagged: #test #usehistory #jest
ADD COMMENT
Topic
Name
1+9 =