Expo-Jest 38 Breaks Jest/JDOM

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): all

After upgrading my project from Expo 37 to 38 using the expo upgrade service my jest tests broke. They were working just fine before the upgrade.

Test suite failed to run

TypeError: this._getEventHandlerFor is not a function

  at Object.get (node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:86:26)
      at Array.forEach (<anonymous>)

After testing each jest related dependency that automatically updated, only reverting jest-expo to 37 made this issue go away.

3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.