Skip to content

Frontend testing

Why React Testing Library (RTL)

  • test the way your user would
  • don't test internals

What RTL does

  • all tests render a component
  • do something once it's rendered
  • then tear it down
  • RTL removes boilerplate
    • and has nice practices
      • isolation of tests

Last update: 2022-09-23