Hi,
I have the following statement in my client library function
$(window).adaptTo("foundation-ui");
I am not able to understand how to mock this line in JEST so that it skips this line
Please can anybody help
Thanks
Tarini
Solved! Go to Solution.
Views
Replies
Total Likes
You'd ned to mock the adapTo function like the example below:
$.fn.adaptTo = jest.fn().mockImplementation(() => {
// Mock implementation goes here
});
You'd ned to mock the adapTo function like the example below:
$.fn.adaptTo = jest.fn().mockImplementation(() => {
// Mock implementation goes here
});