Skip to content

Commit

Permalink
Small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathascarrijo authored Jan 31, 2019
1 parent be16251 commit e33f225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manuscript/chapter4.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ Enzyme has three rendering mechanisms in its API. You already know `shallow()`,
* If you want to test component lifecycle and children behavior, use `mount()`
* If you want to test a component's children rendering with less overhead than `mount()` and you are not interested in lifecycle methods, use `render()`

Continue to unit test your components, but be sure to keep the tests simple and maintainable. Otherwise you will have to refactor them once you change your components. This is one the main reason Facebook introduced snapshot tests with Jest.
Continue to unit test your components, but be sure to keep the tests simple and maintainable. Otherwise you will have to refactor them once you change your components. This is one of the main reasons Facebook introduced snapshot tests with Jest.

### Exercises:

Expand Down

0 comments on commit e33f225

Please sign in to comment.