(configFile)
| 20 | } |
| 21 | |
| 22 | export function readConfig(configFile) { |
| 23 | try { |
| 24 | const data = fs.readFileSync(configFile, 'utf8') |
| 25 | return data |
| 26 | } catch (err) { |
| 27 | output.error(err) |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | function getTestRoot(currentPath) { |
| 32 | if (!currentPath) currentPath = '.' |