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.

Goals and usage of test-utils are unclear in docs

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

I’m trying to use material-ui@next with react-testing-library, which does not use Enzyme, and I find the purpose and use cases of test-utils unclear in the userspace docs. I have used Enzyme previously so I understand the difference between mount/shallow/render, but not how they differ from Enzyme, as I can successfully unit test components with Enzyme directly. Meanwhile, it seems like testing libraries like react-testing-library, which do not use Enzyme renderers, cannot be used with the built in test-utils. I would appreciate more information on what test-utils do differently from a practical perspective (not just adding context to components or wrapping Enzyme for installation convenience) so I can decide when I need to use them over a different testing library.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, May 5, 2018

Most of the value of our helpers come from:

0reactions
nickmccurdycommented, May 5, 2018

Thanks, I was under the impression that they were somehow required or I would at least be shooting myself in the foot with incompatibility if I didn’t.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Find an unknown value with Goal Seek - Google Docs Editors ...
If you know the result you need from a formula, you can use Goal Seek to find the missing value needed to achieve...
Read more >
Proposal: Official way of targeting elements #1234 - GitHub
Currently there are several ways of targeting elements demonstrated in the docs (good). But people are confused as what the "best practice" ...
Read more >
Google Docs: Online Document Editor | Google Workspace
Use Google Docs to create, and collaborate on online documents. Edit together with secure sharing in real-time and from any device.
Read more >
Headings and titles | Google developer documentation style ...
Write document titles based on the primary purpose of the document. ... Task-based headings are frequently used in quickstarts, how-to documents, ...
Read more >
Accessibility in Google Docs | Elgin Community College (ECC)
You can access Google documents using any browser on any device. ... Using them for only an aesthetic purpose confuses the organization of...
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