From 67766ff9db0a1aed2215974465a58535c9fa0e47 Mon Sep 17 00:00:00 2001 From: Barry McGee Date: Mon, 26 Oct 2020 13:14:15 +0000 Subject: [PATCH] Swap out enzyme adaptors for React 17 --- package.json | 3 +++ src/setupTests.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9587877ef..a96b6836d 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,9 @@ "@types/react": "17.0.0", "@types/react-dom": "17.0.0", "eslint-config-prettier": "7.0.0", + "@wojtekmaj/enzyme-adapter-react-17": "0.1.1", + "enzyme": "3.11.0", + "enzyme-to-json": "3.6.1", "eslint-plugin-import": "2.22.1", "eslint-plugin-jest": "24.1.3", "eslint-plugin-jsx-a11y": "6.4.1", diff --git a/src/setupTests.js b/src/setupTests.js index 239aebcab..ef4a97980 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,5 +1,5 @@ import { configure } from "enzyme"; -import Adapter from "enzyme-adapter-react-16"; +import Adapter from "@wojtekmaj/enzyme-adapter-react-17"; configure({ adapter: new Adapter() });