Skip to content

Commit

Permalink
fix adapter import
Browse files Browse the repository at this point in the history
  • Loading branch information
nschubach committed Oct 17, 2023
1 parent e820b80 commit 57bee50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions jest/testSetupFile.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* eslint-disable react/jsx-filename-extension */
import React from "react";
import { configure } from "enzyme";
import Adapter from "@wojtekmaj/enzyme-adapter-react-17";
import Adapter from "@cfaester/enzyme-adapter-react-18";

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

jest.mock("@wpmedia/placeholder-image-block", () => ({
__esModule: true,
default: function PlaceholderImage() {
return <img alt="placeholder" />;
},
__esModule: true,
default: function PlaceholderImage() {
return <img alt="placeholder" />;
},
}));

beforeEach(() => {
jest.resetModules();
jest.resetModules();
});

0 comments on commit 57bee50

Please sign in to comment.