( dir: string, dirCallback: ((dir: string) => void) | null, fileCallback?: (file: string) => void, extension = '', )
| 230 | ); |
| 231 | |
| 232 | const forEachDirAndFile = ( |
| 233 | dir: string, |
| 234 | dirCallback: ((dir: string) => void) | null, |
| 235 | fileCallback?: (file: string) => void, |
| 236 | extension = '', |
| 237 | ): void => |
| 238 | readdirSync(dir, {withFileTypes: true}).forEach((entry) => { |
| 239 | const path = resolve(join(dir, entry.name)); |
| 240 | if (entry.isDirectory()) { |
| 241 | dirCallback?.(path); |
| 242 | } else if (path.endsWith(extension)) { |
| 243 | fileCallback?.(path); |
| 244 | } |
| 245 | }); |
| 246 | |
| 247 | const getRunnableImport = ( |
| 248 | _: string, |
no test coverage detected
searching dependent graphs…