React: [test-renderer] Cannot read property `current` of undefined

Created on 8 Aug 2019  Â·  4Comments  Â·  Source: facebook/react

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Edit pedantic-minsky-o5s5t

What is the expected behavior?

The test shall pass :)

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

"react": "16.8.6",
"react-test-renderer": "16.9.0-rc.0"

Same behavior for react-test-renderer 16.9.0-alpha.0, but works with 16.8.6.

Most helpful comment

Duh, nevermind ... Only after posting this I realized that React version should probably match 😅

All 4 comments

Duh, nevermind ... Only after posting this I realized that React version should probably match 😅

Duh, nevermind ... Only after posting this I realized that React version should probably match 😅

This just saved me from being committed.

@FredyC - Thank you!

Was this page helpful?
0 / 5 - 0 ratings