Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 475 Bytes

File metadata and controls

22 lines (14 loc) · 475 Bytes

Unit Testing 101 Workshop

By LDX Lab

0. Prerequisites

  • Git
  • Node.js v14 (advice: install it via nvm)

1. Install

Install all dependencies in this project:

npm install

2. Run the code

This code samples a calculator and a third party service. To see it working, run: npm run start:calculator or npm run start:time

3. Test it!

Run npm test to run all tests in /test folder. Run npm run test:coverage to run all tests with the coverage report