Below settings for my package.json
If I run from command line npm test all jest test cases are executed properly. In case I use directly the command
npm test
For me, it was the jest-cli package bumping to 21.x. So npm update jest-cli --save-dev
npm update jest-cli --save-dev