Skip to content

jest's collectCoverageFrom #251

@lwiecek

Description

@lwiecek

Type of issue: feature suggestion

Chapter: 02

I added the following config in my package.json:

"jest": {
    "collectCoverageFrom": [
      "src/**.{js,jsx}"
    ]
  }

I think it really helps in showing real code coverage by collecting coverage from all src files rather than only files that are being imported by tests (default behaviour).

See: jestjs/jest#1211

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions