jest icon indicating copy to clipboard operation
jest copied to clipboard

[Bug]: Incorrect "global" coverageThreshold handle, while nested directories thresholds are defined

Open vvscode opened this issue 1 year ago • 4 comments

Version

29.7.0

Steps to reproduce

  1. Clone my repo https://github.com/vvscode/jest-coverage-issue-demo
  2. npm install
  3. npx jest --config jest.config.js
  4. npx jest --config jest.configWithCollectCoverageFrom.js

There is unexpected (by me) behaviour (described in README)

Expected behavior

I expected being able to define global threshold as well as nested modules ones

Actual behavior

Global threshold is not handled properly (not counted or counted incorrectly) if nested one is defined

Additional context

No response

Environment

System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 20.8.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.2.1 - /opt/homebrew/bin/npm
  npmPackages:
    jest: ^29.7.0 => 29.7.0

vvscode avatar Nov 28 '23 12:11 vvscode

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 28 '23 13:12 github-actions[bot]

@cpojer @SimenB hey =)

not trying to prioritise this minor issue, but I'd like to understand the expected workflow for reporting

vvscode avatar Jan 05 '24 05:01 vvscode

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Feb 04 '24 07:02 github-actions[bot]

is anyone observing the list of issues? =)

vvscode avatar Feb 09 '24 17:02 vvscode

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Mar 10 '24 19:03 github-actions[bot]

sad to see full ignore =(

vvscode avatar Mar 17 '24 04:03 vvscode

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Apr 16 '24 04:04 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar May 16 '24 05:05 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

github-actions[bot] avatar May 16 '24 05:05 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

github-actions[bot] avatar Jun 16 '24 00:06 github-actions[bot]