Why is my mocking not working ? I want to mock a npm ws module by returning different values each time.
I\'ve been trying to find a way to test my TypeScript project but with every try Jest or typescript have yelled at me.
I am calling$(window).on(\'scroll\', () =>{the method in my js file. But I can\'t find out how to test this method using JEST.