Reading: React Testing and Deployment - jacobwendt-401-advanced-javascript/cr-js-401d3 GitHub Wiki

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.