fixtures/baz/baz.js
function shouldBeIncluded(file) {
  let isIncluded = false
  let isIgnored = false
  if (hasIgnorePattern) {
    return !ignorePattern.test(file)
  }
  if (hasIncludePattern) {
    return includePattern.test(file)
  }
  return true
}
function shouldBeIncluded(file) {
  let isIncluded = false
  let isIgnored = false
  if (hasIgnorePattern) {
    return !ignorePattern.test(file)
  }
  if (hasIncludePattern) {
    return includePattern.test(file)
  }
  return true
}
function shouldBeIncluded ( file ) { let isIncluded = false let isIgnored = false if ( hasIgnorePattern ) { return ! ignorePattern . test ( file ) } if ( hasIncludePattern ) { return includePattern . test ( file ) } return true }
Uses either the ignore or include pattern to determine
if a file should be shown.
@param {String} file   filename
Uses either the ignore or include pattern to determine if a file should be shown .