Skip to content

Commit

Permalink
Merge pull request #395 from codecov/fix/blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-codecov authored Sep 29, 2021
2 parents 6307cef + dc92a23 commit 7e51690
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export const MARKER_NETWORK_END = '<<<<<< network\n'
export const MARKER_FILE_END = '<<<<<< EOF\n'
export const MARKER_ENV_END = '<<<<<< ENV\n'

const globstar = (pattern: string) => `**/${pattern}`

/**
*
* @param {string} projectRoot
Expand Down Expand Up @@ -178,8 +180,6 @@ export async function getCoverageFiles(
projectRoot: string,
coverageFilePatterns: string[],
): Promise<string[]> {
const globstar = (pattern: string) => `**/${pattern}`

return glob(coverageFilePatterns.map(globstar), {
cwd: projectRoot,
ignore: [...manualBlacklist(), ...globBlacklist()],
Expand Down Expand Up @@ -238,7 +238,7 @@ export function getAllFiles(
return glob
.sync(['**/*', '**/.[!.]*'], {
cwd: projectRoot,
ignore: globBlacklist(),
ignore: manualBlacklist().map(globstar),
})
.map(file => `${file}\n`)
}
Expand Down

0 comments on commit 7e51690

Please sign in to comment.