Question · JavaScript and TypeScript course · Module 11: Testing with Jest

The expect Function in Jest

What is the purpose of the expect() function in Jest?

Answer options

  • Runs the test runner
  • Defines the test description
  • Compares the actual result with the expected one
  • Imports test modules

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