(fixtureName: string)
| 16 | } |
| 17 | |
| 18 | export async function createFixtureTestDirectory(fixtureName: string) { |
| 19 | const fixturePath = path.join(FIXTURES_DIR, fixtureName) |
| 20 | |
| 21 | const uniqueId = `${process.pid}-${randomUUID().substring(0, 8)}` |
| 22 | let testDir = path.join(TEMP_DIR, `test-${uniqueId}-${fixtureName}`) |
| 23 | |
| 24 | await fs.ensureDir(testDir) |
| 25 | await fs.copy(fixturePath, testDir) |
| 26 | |
| 27 | return testDir |
| 28 | } |
| 29 | |
| 30 | export async function runCommand( |
| 31 | cwd: string, |
no outgoing calls