Skip to content

Commit

Permalink
✨ (ignoreCoveragePattern) match regex pattern and string paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Spoutnik97 committed Jan 22, 2022
1 parent 080b44a commit 7a024d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function codeCoverage(
const filterFiles = (file: string) => {
let isFileDisplayed = true;
options.ignoreCoveragePattern.forEach(pattern => {
if (file.includes(pattern)) {
if (file.match(pattern)) {
isFileDisplayed = false;
}
});
Expand Down

0 comments on commit 7a024d8

Please sign in to comment.