This practice is based on the examples available in the jest.io documentation
Install Jest npm install -save-dev jest
Add jest command in scripts In package.json add "test" : "jest" in scripts. This should allow you to run tests using command npm run test or npm test or npm t