From ede0815aafbf99596d264ab4c5b0023e0a43bc2f Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 26 Jan 2016 18:18:04 +0100 Subject: [PATCH] Update component testing doc --- docs/testing/component-testing.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/testing/component-testing.md b/docs/testing/component-testing.md index 1103937b5a..757b1e591d 100644 --- a/docs/testing/component-testing.md +++ b/docs/testing/component-testing.md @@ -1,12 +1,19 @@ # Component testing -Testing your Redux actions and reducers is nice, but you can do even more to make sure nothing breaks your application. The most integral part of a React app are your components. +[Unit testing your Redux actions and reducers](unit-testing.md) is nice, but you can do even more to make sure nothing breaks your application. The most integral part of a React app are your components, so why not test them too! -React provides us with a nice add-on called the Shallow Renderer. This renderer will render a React component **one level deep**. Lets take a look at what that means with a simple `Button` component. + + +- [Shallow rendering](#shallow-rendering) +- [enzyme](#enzyme) + + ## Shallow rendering -Our `Button` renders a `