Write Test Cases First, than write the APIs, because one of the best side effects of testing is not actually about "testing" the code, by doing Test Driven Developement, the test cases explaines the reason why the code was made that way, so yeah good af documentation.
Run all tests
Compile Typescript to build folder, run all tests
- tsc --build --clean
- tsc --build
- npm run test
Run specific test
Compile Typescript to build folder, run specific test
- tsc --build --clean
- tsc --build
- npm run unitTest -- build/test/add.test.js
- npm run unitTest -- build/test/env.test.js
Write Test Cases First, than write the APIs, because one of the best side effects of testing is not actually about "testing" the code, by doing Test Driven Developement, the test cases explaines the reason why the code was made that way, so yeah good af documentation.
Run all tests
Compile Typescript to build folder, run all tests
Run specific test
Compile Typescript to build folder, run specific test