Skip to content

Commit

Permalink
Mobile tests: fix ESM import for jest-environment-jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Mar 8, 2023
1 parent 7be547a commit 785b2d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-editor/jest_ui_test_environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const testData = require( './__device-tests__/helpers/test-data' );
* External dependencies
*/
// eslint-disable-next-line import/no-extraneous-dependencies
const JSDOMEnvironment = require( 'jest-environment-jsdom' );
const JSDOMEnvironment = require( 'jest-environment-jsdom' ).default;

class CustomEnvironment extends JSDOMEnvironment {
async setup() {
Expand Down

0 comments on commit 785b2d2

Please sign in to comment.