File size: 423 Bytes
bdbd3b2
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import { isGeneratedFile } from './is-generated-file'
import { isTestFile } from './is-test-file'

/**
 * Whether a changed file is hidden behind the pane's tests-and-generated
 * line until the person asks to see it.
 *
 * @param path the file's path from the repository root
 * @returns whether it is a test or a generated file
 */
export const isNoiseFile = (path: string) =>
  isTestFile(path) || isGeneratedFile(path)