()
| 12 | const generatedPaths = [openApiPath, sidecarOpenApiPath, methodVerbsPath]; |
| 13 | |
| 14 | function snapshotGeneratedFiles() { |
| 15 | return new Map( |
| 16 | generatedPaths.map((filePath) => [filePath, fs.readFileSync(filePath, 'utf8')]), |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | function restoreGeneratedFiles(snapshot) { |
| 21 | for (const [filePath, contents] of snapshot) { |