From 9c39cb117f37353c918f5d28f70bb91b9c043746 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Thu, 5 Apr 2018 10:09:59 -0600 Subject: [PATCH] add reference to react-testing-library Because it will help engineers write better tests with react. --- content/docs/addons-test-utils.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/docs/addons-test-utils.md b/content/docs/addons-test-utils.md index cbdf09da..cffd39f1 100644 --- a/content/docs/addons-test-utils.md +++ b/content/docs/addons-test-utils.md @@ -20,6 +20,8 @@ var ReactTestUtils = require('react-dom/test-utils'); // ES5 with npm > Note: > > Airbnb has released a testing utility called Enzyme, which makes it easy to assert, manipulate, and traverse your React Components' output. If you're deciding on a unit testing utility to use together with Jest, or any other test runner, it's worth checking out: [http://airbnb.io/enzyme/](http://airbnb.io/enzyme/) +> +> Alternatively, there is another testing utility called react-testing-library. This is a simple and small utility that helps your tests give you confidence your components are working by encouraging you to write tests that use your components as the end users use them. It also works with any test runner: [https://git.io/react-testing-library](https://git.io/react-testing-library) - [`Simulate`](#simulate) - [`renderIntoDocument()`](#renderintodocument)