An interactive workshop about the many uses of Jest
git clone https://github.com/DevTesterThings/JestWSNTD_2019.git
cd Jest-Workshop
$ export NODE_TLS_REJECT_UNAUTHORIZED=0 && npm ci
To run a test/s:
$ npm run test
$ npm run test -- --watchAll
$ npm run test -- --coverage
Jest will look for test files with any of the following naming conventions: Files with .js suffix in tests folders. Files with .test.js suffix. Files with .spec.js suffix.
npm start - recompiles the code npm test - runs the tests