Why To Use Shallow Rendering for UI Testing

September 14, 2022

It Works

This allows you to easily and quickly not only test your internal UI methods but also how the component itself behaves given those inputs by your dependencies. Most of the time this can even prevent you from needing a whole other tool set like Playwrite or Cypress.