()
| 15 | }); |
| 16 | |
| 17 | function createProjectDir(): string { |
| 18 | const projectDir = mkdtempSync(join(tmpdir(), "hf-files-test-")); |
| 19 | tempDirs.push(projectDir); |
| 20 | writeFileSync(join(projectDir, "index.html"), "<html><body>Preview</body></html>"); |
| 21 | return projectDir; |
| 22 | } |
| 23 | |
| 24 | function createAdapter(projectDir: string): StudioApiAdapter { |
| 25 | return { |