Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
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.
You'd ned to mock the adapTo function like the example below:
$.fn.adaptTo = jest.fn().mockImplementation(() => { // Mock implementation goes here });
View solution in original post
Views
Likes
Replies