react-test-renderer Deprecation Warnings
ReactTestRenderer.create() warning
react-test-renderer is deprecated. A warning will fire whenever calling ReactTestRenderer.create() or ReactShallowRender.render(). The react-test-renderer package will remain available on NPM but will not be maintained and may break with new React features or changes to React's internals.
The React Team recommends migrating your tests to @testing-library/react or @testing-library/react-native for a modern and well supported testing experience.
new ShallowRenderer() warning
The react-test-renderer package no longer exports a shallow renderer at react-test-renderer/shallow
. This was simply a repackaging of a previously extracted separate package: react-shallow-renderer
. Therefore you can continue using the shallow renderer in the same way by installing it directly. See Github / NPM.