(fileName: string)
| 573 | } |
| 574 | |
| 575 | function determineFilePath(fileName: string): string | undefined { |
| 576 | const extensions = ['.ts', '.js', '.mjs', '.cjs'] |
| 577 | const paths = extensions.map((ext) => resolve(process.cwd(), fileName + ext)) |
| 578 | return getPath(paths) |
| 579 | } |
| 580 | |
| 581 | function getPath(paths: string[]): string | undefined { |
| 582 | const path = paths.shift() |
no test coverage detected