( dir: string, callback: (filePath: string) => void, extension = '', )
| 17 | value.replaceAll(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
| 18 | |
| 19 | const forEachDeepFile = ( |
| 20 | dir: string, |
| 21 | callback: (filePath: string) => void, |
| 22 | extension = '', |
| 23 | ): void => |
| 24 | readdirSync(dir, {withFileTypes: true}).forEach((entry) => { |
| 25 | const path = resolve(join(dir, entry.name)); |
| 26 | if (entry.isDirectory()) { |
| 27 | forEachDeepFile(path, callback, extension); |
| 28 | } else if (extension == '' || path.endsWith(extension)) { |
| 29 | callback(path); |
| 30 | } |
| 31 | }); |
| 32 | |
| 33 | const getDocShotRefs = (outDir: string): string[] => { |
| 34 | const shotDir = join(outDir, DOC_SHOT_DIR); |
no test coverage detected
searching dependent graphs…