Browse Source

Update addons-test-utils.md (#3660)

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
main
Marisha Parker 4 years ago
committed by GitHub
parent
commit
12b08e47bf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      content/docs/addons-test-utils.md

6
content/docs/addons-test-utils.md

@ -20,8 +20,10 @@ var ReactTestUtils = require('react-dom/test-utils'); // ES5 with npm
> Note:
>
> We recommend using [React Testing Library](https://testing-library.com/react) which is designed to enable and encourage writing tests that use your components as the end users do.
>
> Alternatively, Airbnb has released a testing utility called [Enzyme](https://airbnb.io/enzyme/), which makes it easy to assert, manipulate, and traverse your React Components' output.
>
> For React versions <= 16, the [Enzyme](https://airbnb.io/enzyme/) library makes it easy to assert, manipulate, and traverse your React Components' output.
- [`act()`](#act)
- [`mockComponent()`](#mockcomponent)

Loading…
Cancel
Save