(filename: string, extensions: Array<string>)
| 36 | } |
| 37 | |
| 38 | function stripExtension(filename: string, extensions: Array<string>): string { |
| 39 | for (const ext of extensions) { |
| 40 | if (filename.endsWith(ext)) { |
| 41 | return filename.slice(0, -ext.length); |
| 42 | } |
| 43 | } |
| 44 | return filename; |
| 45 | } |
| 46 | |
| 47 | export async function readTestFilter(): Promise<TestFilter | null> { |
| 48 | if (!(await exists(FILTER_PATH))) { |
no outgoing calls
no test coverage detected