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
Jacob-Wendt edited this page Jun 27, 2019
·
1 revision
Shallow Rendering API
useful to constrain yourself to testing a component as a unit
ensures that your tests aren't indirectly asserting on behavior of child components.
Static Rendering API
Use enzyme's render function to generate HTML from your React tree, and analyze the resulting HTML structure.
Full Rendering API
Full DOM rendering is ideal for use cases where you have components that may interact with DOM APIs or need to test components that are wrapped in higher order components.
Full DOM rendering requires that a full DOM API be available at the global scope.