diff --git a/packages/jest-environment-enzyme/README.md b/packages/jest-environment-enzyme/README.md index b7a4830..1c54f8d 100644 --- a/packages/jest-environment-enzyme/README.md +++ b/packages/jest-environment-enzyme/README.md @@ -39,6 +39,7 @@ Valid options are: * `react15` * `react15.4` * `react16` (default) +* `react18` ```js // package.json diff --git a/packages/jest-environment-enzyme/src/setup.js b/packages/jest-environment-enzyme/src/setup.js index d6586e5..455aa4e 100644 --- a/packages/jest-environment-enzyme/src/setup.js +++ b/packages/jest-environment-enzyme/src/setup.js @@ -16,6 +16,9 @@ export const exposeGlobals = () => { case 'react15.4': dep = 'enzyme-adapter-react-15.4'; break; + case 'react18': + dep = '@cfaester/enzyme-adapter-react-18'; + break; case 'react16': default: dep = 'enzyme-adapter-react-16';