Skip to content

Commit

Permalink
Link from shallow docs to migration guide on lifecycle methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfranklin authored and ljharb committed Dec 18, 2017
1 parent d259849 commit 356cc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/shallow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Shallow rendering is useful to constrain yourself to testing a component as a unit, and to ensure
that your tests aren't indirectly asserting on behavior of child components.

As of Enzyme v3, the `shallow` API does call React lifecycle methods such as `componentDidMount` and `componentDidUpdate`.
As of Enzyme v3, the `shallow` API does call React lifecycle methods such as `componentDidMount` and `componentDidUpdate`. You can read more about this in the [version 3 migration guide](../guides/migration-from-2-to-3.md#lifecycle-methods).

```jsx
import { shallow } from 'enzyme';
Expand Down

0 comments on commit 356cc27

Please sign in to comment.