npm run test:coverage command in jest

JavaScript
npm test -- --coverage
Source

Also in JavaScript: