Skip to content

Commit

Permalink
[Docs] mount: setState: note that you can now call it on "not the…
Browse files Browse the repository at this point in the history
… root"
  • Loading branch information
EstebanMarin authored and ljharb committed Feb 7, 2019
1 parent 375dbd1 commit f4bb661
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/api/ReactWrapper/setState.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ your component's external API (which is often accessible via [`.instance()`](ins
to get it into whatever state you want to test, in order to be as accurate of a test as possible.
This is not always practical, however.

NOTE: can only be called on a wrapper instance that is also the root instance.

NOTE: Prior to v3.8.0 of enzyme, can only be called on a wrapper instance that is also the root instance.

#### Arguments

Expand Down

0 comments on commit f4bb661

Please sign in to comment.