()
| 123 | const WORKFLOW_BASELINES = new Map<string, Buffer>(); |
| 124 | |
| 125 | function cleanup() { |
| 126 | // Remove any scaffolded package dirs the generator produced. |
| 127 | for (const slug of TEST_SLUGS) { |
| 128 | const dir = path.join(TMP_PACKAGES_DIR, slug); |
| 129 | if (fs.existsSync(dir)) { |
| 130 | fs.rmSync(dir, { recursive: true, force: true }); |
| 131 | } |
| 132 | } |
| 133 | // Restore each seeded workflow to its baseline so the next test starts |
| 134 | // with the same anchors the generator's regex edits expect. |
| 135 | for (const [p, baseline] of WORKFLOW_BASELINES) { |
| 136 | fs.writeFileSync(p, baseline); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | beforeAll(() => { |
| 141 | TMP_ROOT = fs.mkdtempSync(path.join(os.tmpdir(), "create-integration-")); |
no test coverage detected
searching dependent graphs…