Skip to content

How to exclude some files and folders from coverage report? #1455

Closed
@MykytaLiashenko

Description

@MykytaLiashenko

I am trying to exclude some JS files from coverage report.
I have already added this to package.json

"jest": {
    "testPathIgnorePatterns" : ["<rootDir>/node_modules/", "<rootDir>/path/to/dir/" ],
    "testResultsProcessor": "./node_modules/jest-junit-reporter"
  }

Unfortunately files from those dir still appear when I run CI=true npm test -- --coverage

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions