Skip to content

Commit

Permalink
Try updating enzyme testing adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Aug 31, 2024
1 parent 523481f commit 164b45d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jest-setup-wordpress-globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import Backbone from 'backbone';
import * as Mn from 'backbone.marionette';
import underscore from 'underscore';

import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

import {
combineReducers,
registerStore,
Expand Down Expand Up @@ -37,3 +40,5 @@ global.Backbone.Marionette = Mn;

// @see PodsInit.php
global.PodsMn = global.Backbone.noConflict();

Enzyme.configure({ adapter: new Adapter() });

0 comments on commit 164b45d

Please sign in to comment.