Jest: TypeError: jquery.extend is not a function

Viewed 20

Test suite failed to run

TypeError: jquery.extend is not a function

Here I am trying to import a module and call a function in Jest test cases. When the test run initiates, the import module in test file is invoked and jquery.extend code inside the module throws the above exception. I have added jsdom and jest-environment-dom packages to Yarn.

0 Answers
Related