File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 3
3
Syncs the enzyme component tree snapshot with the react component tree. Useful to run before checking the render output if something external
4
4
may be updating the state of the component somewhere.
5
5
6
- NOTE: can only be called on a wrapper instance that is also the root instance.
7
- NOTE: only update the Enzyme's representation of rendered tree.
6
+ NOTE: no matter what instance this is called on, it will always update the root.
7
+
8
+ NOTE: only updates Enzyme's representation of rendered tree.
9
+
8
10
NOTE: this does not force a re-render. Use ` wrapper.setProps({}) ` to force a re-render.
9
11
10
12
Original file line number Diff line number Diff line change 3
3
Syncs the enzyme component tree snapshot with the react component tree. Useful to run before checking the render output if something external
4
4
may be updating the state of the component somewhere.
5
5
6
- NOTE: can only be called on a wrapper instance that is also the root instance.
7
- NOTE: only update the Enzyme's representation of rendered tree.
6
+ NOTE: no matter what instance this is called on, it will always update the root.
7
+
8
+ NOTE: only updates Enzyme's representation of rendered tree.
9
+
8
10
NOTE: this does not force a re-render. Use ` wrapper.setProps({}) ` to force a re-render.
9
11
10
12
You can’t perform that action at this time.
0 commit comments