* Create a temporary directory for test files
()
| 33 | * Create a temporary directory for test files |
| 34 | */ |
| 35 | function createTempDir(): string { |
| 36 | const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), "fetch-e2e-test-")); |
| 37 | tempDirsToCleanup.push(tempDir); |
| 38 | return tempDir; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Generate a self-signed certificate for testing |