(contents: string)
| 1560 | |
| 1561 | describe('runCodePut', () => { |
| 1562 | function writeCodeFile(contents: string): string { |
| 1563 | const dir = mkdtempSync(join(tmpdir(), 'cli-p4-')); |
| 1564 | const path = join(dir, 'updated.spec.ts'); |
| 1565 | writeFileSync(path, contents, 'utf8'); |
| 1566 | return path; |
| 1567 | } |
| 1568 | |
| 1569 | const SAMPLE_RESPONSE = { |
| 1570 | testId: 'test_alpha', |