jest and code coverage npm command code example Example: npm run test:coverage command in jest npm test -- --coverage