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

describe and it blocks in Jest

What is the describe() block used for in Jest?

Answer options

  • Grouping related tests into logical blocks
  • Importing test modules from external libraries
  • Defining global variables available in all tests
  • Automatically generating test reports

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