Skip to content

Commit 7a024d8

Browse files
committed
✨ (ignoreCoveragePattern) match regex pattern and string paths
1 parent 080b44a commit 7a024d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function codeCoverage(
3434
const filterFiles = (file: string) => {
3535
let isFileDisplayed = true;
3636
options.ignoreCoveragePattern.forEach(pattern => {
37-
if (file.includes(pattern)) {
37+
if (file.match(pattern)) {
3838
isFileDisplayed = false;
3939
}
4040
});

0 commit comments

Comments
 (0)