Skip to content

Commit

Permalink
Replace enzyme-adapter-react-16 with @wojtekmaj/enzyme-adapter-react-17
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Feb 22, 2023
1 parent e4c9fa7 commit 417493b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"babel-jest": "^29.3.1",
"babel-loader": "^9.1.0",
"babel-plugin-lodash": "^3.3.4",
Expand All @@ -96,7 +97,6 @@
"chalk": "^4.1.0",
"core-js": "^3.21.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.0",
"eslint": "^8.11.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-react-app": "^7.0.0",
Expand Down
2 changes: 1 addition & 1 deletion setupJest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { JSDOM } from 'jsdom'; // eslint-disable-line import/no-extraneous-depen
import raf from 'raf'; // eslint-disable-line import/no-extraneous-dependencies
import fetchMock from 'jest-fetch-mock'; // eslint-disable-line import/no-extraneous-dependencies
import Enzyme from 'enzyme'; // eslint-disable-line import/no-extraneous-dependencies
import Adapter from 'enzyme-adapter-react-16'; // eslint-disable-line import/no-extraneous-dependencies
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; // eslint-disable-line import/no-extraneous-dependencies

const jsdom = new JSDOM('<!doctype html><html><body><div id="main"></div></body></html>', { url: 'https://localhost' });
const { window } = jsdom;
Expand Down

0 comments on commit 417493b

Please sign in to comment.