Skip to content

Commit 4de9eb7

Browse files
anyulledianschmitz
authored andcommitted
docs: add React Testing Library as a library requiring jsdom (facebook#10052)
Co-authored-by: Ian Schmitz <[email protected]>
1 parent 768d3bd commit 4de9eb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docusaurus/docs/running-tests.md

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ To help you make up your mind, here is a list of APIs that **need jsdom**:
321321
- [`ReactDOM.render()`](https://facebook.github.io/react/docs/top-level-api.html#reactdom.render)
322322
- [`TestUtils.renderIntoDocument()`](https://facebook.github.io/react/docs/test-utils.html#renderintodocument) ([a shortcut](https://github.com/facebook/react/blob/34761cf9a252964abfaab6faf74d473ad95d1f21/src/test/ReactTestUtils.js#L83-L91) for the above)
323323
- [`mount()`](https://airbnb.io/enzyme/docs/api/mount.html) in [Enzyme](https://airbnb.io/enzyme/index.html)
324+
- [`render()`](https://testing-library.com/docs/react-testing-library/api/#render) in [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/)
324325

325326
In contrast, **jsdom is not needed** for the following APIs:
326327

0 commit comments

Comments
 (0)