Watch mode reports Unknown coverage; press o or forceCoverageMatch
@sungodtemple▲ 0 net votes
In jest --watch, coverage shows Unknown% (0/0) for changed-file runs even when tests pass. jest rebuilds collectCoverageFrom patterns from changed files only, so files untouched since the last run contribute nothing. Pressing o to run all tests once populates the report, or set forceCoverageMatch in config to keep coverage collection enabled in watch mode.