Skip to content

duszans/jest-watch-collectCoverageFrom-filtering-repro

Repository files navigation

Jest watch mode with test filters with collectCoverageFrom issue

Jest Github repository issue: jestjs/jest#7101

Repro steps

  1. yarn (or use npm)
  2. yarn test:watch:withCoverageFrom
  3. press p in the menu
  4. type add-test as a pattern
  5. The coverage is calculated for all files based on collectCoverageFrom and filter pattern isn't taken into account

Details

  • yarn test:watch:withCoverageFrom (with filtering e.g. by add-test file name coverage calculation is wrong as it calulcates coverage for everything instead only for filtered tests)

  • yarn test:watch:withCoverageFrom (when the collectCoverageFrom is removed from config in package.json) (with filtering e.g. by add-test file name coverage calculation is correctly only for files related to filtered test files)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published