Question · JavaScript and React course · Module 13: Testing React

Snapshot testing - when to use

When is snapshot testing the BEST choice?

Answer options

  • When testing asynchronous data fetching
  • When testing the complex business logic of components
  • When testing user interactions with forms
  • When testing simple presentational components without logic

You can check the correct answer by solving this task in the CodeWorlds game.