You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -166,6 +166,10 @@ optional message
166
166
167
167
Prints shallowly rendered component passed to `render` with optional message on top. Uses [debug.shallow](#debug) under the hood, but it's easier to use.
168
168
169
+
### `toJSON: () => ?ReactTestRendererJSON`
170
+
171
+
Get the rendered component JSON representation, e.g. for snapshot testing.
172
+
169
173
## `shallow`
170
174
171
175
Shallowly render given React component. Since it doesn't return helpers to query the output, it's mostly advised to used for snapshot testing (short snapshots are best for code reviewers).
0 commit comments