Jump to content

Unit Testing/Jest/View Test Coverage

From Wikiversity

View test coverage.

  1. Run the following command and observe the results:
    • npm test -- --coverage
  2. Add tests and then repeat the command above to achieve 100% coverage.