(prefix)
| 26 | } |
| 27 | |
| 28 | function mkTmpWorkspace(prefix) { |
| 29 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), prefix)); |
| 30 | fs.mkdirSync(path.join(dir, 'workspace'), { recursive: true }); |
| 31 | return path.join(dir, 'workspace'); |
| 32 | } |
| 33 | |
| 34 | // Replace workspaceKeychain.js in the require cache with a mock that |
| 35 | // records all calls and lets each test pre-seed its own state. |
no outgoing calls
no test coverage detected