(filePath, options = {})
| 48 | } |
| 49 | |
| 50 | function readJsonIfExists(filePath, options = {}) { |
| 51 | if (!fs.existsSync(filePath)) return null; |
| 52 | const raw = fs.readFileSync(filePath, 'utf8'); |
| 53 | const json = options.allowLineComment ? raw.replace(/^\/\/.*\n/, '') : raw; |
| 54 | return JSON.parse(json); |
| 55 | } |
| 56 | |
| 57 | function createAutomationPlan(options = {}) { |
| 58 | const projectRoot = path.resolve(options.projectRoot || process.cwd()); |
no outgoing calls
no test coverage detected