Question · NestJS course · Module 7: Testing

Role of Stub in tests

A Stub in tests is:

Answer options

  • An error logging mechanism
  • A real service implementation
  • A performance profiling tool
  • An object with predetermined responses, without logic

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