question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider waiting with `react-test-renderer` until it is ready?

See original GitHub issue

I can see react-test-renderer is included in the 0.3.0-alpha.

I tried the react-test-renderer first time today, and it hasn’t been a friction-less experience so far. Are you sure that react-test-renderer is ready to be exposed to beginners?

See my other issue on react requesting documentation for react-test-renderer: https://github.com/facebook/react/issues/7431

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
gaearoncommented, Sep 1, 2016

FYI we’re going to release Jest integration now but downplay snapshot testing until it’s more polished.

2reactions
gaearoncommented, Dec 28, 2016

Snapshot rendering should actually be pretty stable / useable after React 15.4.1. See this post for more info.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Jest run assertions before componentDidMount ...
(Note that calling await on renderer.create doesn't wait for the Promise returned by componentDidMount ). The rest of the test is synchronous so ......
Read more >
Testing React Components with react-test-renderer, and the ...
Learn how to test React components with react-test-renderer, and the Act API.
Read more >
TDD with React Test Renderer - LogRocket Blog
Let's consider the requirements for a simple component: It needs to have a class btn-group; It should be able to render its children ......
Read more >
Testing async stuff in React components with Jest and react ...
getBy* commands fail if not found, so waitFor waits until getBy* succeeds. Checky all good. ✓ All good! Tests passes and no warnings!...
Read more >
How to Test React Components: the Complete Guide
Enyme Setup; react-test-renderer; snapshot testing ... render method to wait until the request is complete to display the title data from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found