ReactTestUtils has been moved
问题 I'm starting learning React and while I was doing some tests i noticed two warning messages: Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning. Warning: Shallow renderer has been moved to react-test-renderer/shallow. Update references to remove this warning. They don't prevent the tests from running nor from properly validating, but there is always this error. By looking at the docs, I found this page, even after I included those lines