diff --git a/package-lock.json b/package-lock.json index 6fc19b7f50..b1e453d43b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -53306,7 +53306,8 @@ }, "devDependencies": { "@instructure/ui-babel-preset": "8.46.1", - "@instructure/ui-test-utils": "8.46.1" + "@instructure/ui-test-utils": "8.46.1", + "react-dom": "^18.2.0" }, "peerDependencies": { "react": ">=16.8 <=18" @@ -59184,7 +59185,8 @@ "@instructure/ui-themes": "8.46.1", "@instructure/ui-utils": "8.46.1", "hoist-non-react-statics": "^3.3.2", - "prop-types": "^15.8.1" + "prop-types": "^15.8.1", + "react-dom": "^18.2.0" } }, "@instructure/instructure-theme": { diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 4c95e6a2ad..1cec32ebec 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -38,7 +38,8 @@ }, "devDependencies": { "@instructure/ui-babel-preset": "8.46.1", - "@instructure/ui-test-utils": "8.46.1" + "@instructure/ui-test-utils": "8.46.1", + "react-dom": "^18.2.0" }, "peerDependencies": { "react": ">=16.8 <=18" diff --git a/packages/emotion/src/__tests__/withStyle.test.tsx b/packages/emotion/src/__tests__/withStyle.test.tsx index f687bd2699..9f8974a014 100644 --- a/packages/emotion/src/__tests__/withStyle.test.tsx +++ b/packages/emotion/src/__tests__/withStyle.test.tsx @@ -24,6 +24,8 @@ /** @jsx jsx */ import React from 'react' +import ReactDOM from 'react-dom' +import ReactTestUtils from 'react-dom/test-utils' import PropTypes from 'prop-types' import { expect, match, mount, stub, within } from '@instructure/ui-test-utils' @@ -136,6 +138,28 @@ describe('@withStyle', async () => { } } + class WrapperComponent extends React.Component { + render() { + return ( +