Question · NestJS course · Module 6: Error Handling and Monitoring

Code Coverage with Tests

How do you run tests with a code coverage report in NestJS?

Answer options

  • npm run test -- --coverage
  • npm run test:debug
  • npm run build:test
  • npm run lint:coverage

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