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 ito install Jest. npm testto smoke test jest is working.
- Edit the test
- Edit the source lib
npm testfor a single test run, ornpm run test:watchto re-run tests on file change.