< Unit Testing < Jest

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.
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.