(workDir: string, jobFile: JobFile)
| 196 | } |
| 197 | |
| 198 | export function saveJobFile(workDir: string, jobFile: JobFile): void { |
| 199 | const filePath = getJobFilePath(workDir); |
| 200 | const normalized = normalizeJobFile(jobFile); |
| 201 | validateJobFileShape(normalized, filePath); |
| 202 | fs.writeFileSync(filePath, JSON.stringify(normalized, null, 2) + "\n", "utf-8"); |
| 203 | } |
no test coverage detected