(currentPath)
| 29 | } |
| 30 | |
| 31 | function getTestRoot(currentPath) { |
| 32 | if (!currentPath) currentPath = '.' |
| 33 | if (!path.isAbsolute(currentPath)) currentPath = path.join(process.cwd(), currentPath) |
| 34 | currentPath = fs.lstatSync(currentPath).isDirectory() || !path.extname(currentPath) ? currentPath : path.dirname(currentPath) |
| 35 | return currentPath |
| 36 | } |
| 37 | export { getTestRoot } |
| 38 | |
| 39 | function fail(msg) { |
no outgoing calls