How to exclude some files and folders from coverage report?
Created by: NikitaLiashenko
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