(files: Array<string>, targetDir?: string)
| 285 | } |
| 286 | |
| 287 | export function cleanUpFileArray(files: Array<string>, targetDir?: string) { |
| 288 | return files.reduce<Array<string>>((acc, file) => { |
| 289 | if (basename(file) !== '.cta.json') { |
| 290 | acc.push(targetDir ? toCleanPath(file, targetDir) : file) |
| 291 | } |
| 292 | return acc |
| 293 | }, []) |
| 294 | } |
no test coverage detected