Code extracted from Jest documentation: https://jestjs.io/docs/getting-started
Simple unit test using Jest: "sum.test.js".
Function "sum" coded in "sum.js".
npm init
It was informed:
test command: jest
npm install --save-dev jest
npm test
Expected:
PASS ./sum.test.js
√ adds 1 + 2 to equal 3 (5 ms)
git config --global user.name "username"
git config --global user.email email