npm run jestc src/pages/no-match/index.test.js will become craco test "src/pages/no-match/index.test.js" "--watchAll=false" "--coverage" "--collectCoverageFrom=src/pages/no-match/index.js*", note that it will only collect coverage from src/pages/no-match/index.js*.
When you want to improve coverage, this script will be helpful.
npm run jestc src/pages/no-match/index.test.js
will becomecraco test "src/pages/no-match/index.test.js" "--watchAll=false" "--coverage" "--collectCoverageFrom=src/pages/no-match/index.js*"
, note that it will only collect coverage fromsrc/pages/no-match/index.js*
.When you want to improve coverage, this script will be helpful.