Tests - PelletierConstructionGroup/Pelletier-construction-group-nestjs GitHub Wiki

Tests

Section pending approval

This section provides guidance on how to run tests for the application.

May need to be double checked for accuracy

Prerequisites

  • Make sure you have Node.js (v18) and MongoDB installed.
  • Ensure that all dependencies are installed by running npm install.

Running Unit Tests

To run unit tests, execute the following command:

npm run test

This will run all unit tests and display the results in the terminal.

Running End-to-End Tests

To run end-to-end tests, execute the following command:

npm run test:e2e

This will run all end-to-end tests and display the results.

Running Test Coverage

To generate a test coverage report, run:

npm run test:cov

This will generate a coverage report in the coverage/ directory.