Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

ReactTestUtils Warning #25

Open
samblake opened this issue May 21, 2017 · 5 comments
Open

ReactTestUtils Warning #25

samblake opened this issue May 21, 2017 · 5 comments

Comments

@samblake
Copy link

samblake commented May 21, 2017

When running tests as described in the readme I get the following warning.

ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.

To fix this I added a dependency on react-test-renderer as required for Enzyme with React >= 15.5.

@DanielRosenwasser
Copy link
Member

Hey @wmonk, would it make more sense to add this to the https://github.com/wmonk/create-react-app-typescript repo?

@wmonk
Copy link

wmonk commented May 23, 2017

We just upgraded to cra@1.x.x so might have been fixed in there. Nobody else has opened this issue there, but if it persists feel free to!

@DanielRosenwasser
Copy link
Member

@samblake can you try again and see if the issue is still present?

@samblake
Copy link
Author

samblake commented Jun 3, 2017

I tried again, seems to be fine now.

@samblake samblake closed this as completed Jun 3, 2017
@samblake
Copy link
Author

samblake commented Jun 3, 2017

Sorry, got trigger happy, the problem is still present.

 PASS  src/components/Hello.test.tsx
  ● Console

    console.error node_modules/fbjs/lib/warning.js:36
      Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.
    console.error node_modules/fbjs/lib/warning.js:36
      Warning: Shallow renderer has been moved to react-test-renderer/shallow. Update references to remove this warning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants