This is a simple test runner setup for playing with a Javascript function.
- Clone the repo
- From a command line, inside the repo directory, run
npm i
to install Jest. npm test
to smoke test jest is working.
- Edit the test
- Edit the source lib
npm test
for a single test run, ornpm run test:watch
to re-run tests on file change.