(options)
| 60 | let serverProcess; |
| 61 | |
| 62 | async function setupProxy(options) { |
| 63 | const postfix = Math.random() |
| 64 | .toString(32) |
| 65 | .slice(2); |
| 66 | |
| 67 | const testRepoName = `proxy-test-repo-${Date.now()}-${postfix}`; |
| 68 | const tempDir = path.join('.temp', testRepoName); |
| 69 | |
| 70 | const { mode, ...rest } = options; |
| 71 | |
| 72 | await updateConfig(config => { |
| 73 | merge(config, rest); |
| 74 | }); |
| 75 | |
| 76 | return { tempDir, mode }; |
| 77 | } |
| 78 | |
| 79 | async function teardownProxy(taskData) { |
| 80 | if (serverProcess) { |
no test coverage detected