Unit Tests¶
Lesgo! uses Jest testing framework for unit testing.
All test files exist in the tests/
directory.
Run Test¶
This command will execute the unit testing.
npm test
Run Coverage Report¶
This command will execute the unit testing and generate a code coverage report.
npm run coverage
View the generated html report in coverage/index.html
.
Test environment¶
Declare test environment configurations as NODE variables in tests/setupTest.js
.