- You will need to have git installed
- NodeJS & npm - https://nodejs.org
- yarn [optional] - https://yarnpkg.com
Use git
to clone:
git clone https://github.com/ollinmagno/nodejs-unit-test.git
Or download the .zip archive and unzip it to the folder nodejs-unit-test
:
https://github.com/ollinmagno/nodejs-unit-test/archive/refs/heads/master.zip
On the command-line or Terminal, navigate to the root of the directory which you downloaded and run:
- If you have npm:
npm install
- If you have yarn:
yarn install
Commands you should now be able to run:
- Run Jest tests once:
npm test
oryarn test