0

A Jest unit test that tests a React component which calls certain Jquery functions is not passing. I'm receiving the following error: Error Snapshot

What can I do to solve this?

xavier
  • 1,860
  • 4
  • 18
  • 46
  • Possible duplicate of [reactjs jest jQuery is not defined](https://stackoverflow.com/questions/41844947/reactjs-jest-jquery-is-not-defined) – WofWca Feb 17 '19 at 13:50

1 Answers1

0

Would require more information about how you ran the test and whether or not you exposed Jquery correctly. This seems to be a problem of not having Jquery either 'imported' or 'required' properly in the test file.