diff --git a/packages/react-test-renderer/package.json b/packages/react-test-renderer/package.json index 9fee2f49c0e37..e0f95987080d7 100644 --- a/packages/react-test-renderer/package.json +++ b/packages/react-test-renderer/package.json @@ -22,6 +22,7 @@ "object-assign": "^4.1.1", "prop-types": "^15.6.2", "react-is": "^16.8.6", + "react-shallow-renderer": "^16.12.0", "scheduler": "^0.19.0" }, "peerDependencies": { diff --git a/packages/react-test-renderer/shallow.js b/packages/react-test-renderer/shallow.js index fa548b35732db..3c455d9656ded 100644 --- a/packages/react-test-renderer/shallow.js +++ b/packages/react-test-renderer/shallow.js @@ -7,4 +7,4 @@ * @flow */ -export {default} from './src/ReactShallowRenderer'; +export {default} from 'react-shallow-renderer'; diff --git a/yarn.lock b/yarn.lock index 83a4142f7f471..5a02e8407c9d5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10856,6 +10856,15 @@ react-native-web@^0.11.5: prop-types "^15.6.0" react-timer-mixin "^0.13.4" +react-shallow-renderer@^16.12.0: + version "16.12.0" + resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.12.0.tgz#e68ca8fca7a616db42c36fdd6929723ba0bccef6" + integrity sha512-elIe2dhXJAO19IY1K3b4YWHBLnKE5wRH+PKx3AYzM6j2+N5UI+FGLKiRNFbLQcggrpBiy3GLhj7MqNUlRk9Z7g== + dependencies: + object-assign "^4.1.1" + prop-types "^15.7.2" + react-is "^16.12.0" + react-timer-mixin@^0.13.4: version "0.13.4" resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.4.tgz#75a00c3c94c13abe29b43d63b4c65a88fc8264d3"