(dir: Fixture)
| 92 | export interface Fixture extends Record<string, string> {} |
| 93 | |
| 94 | export async function testdir(dir: Fixture) { |
| 95 | const temp = f.temp(); |
| 96 | await Promise.all( |
| 97 | Object.keys(dir).map(async (filename) => { |
| 98 | const fullPath = path.join(temp, filename); |
| 99 | await fs.outputFile(fullPath, dir[filename]); |
| 100 | }) |
| 101 | ); |
| 102 | return temp; |
| 103 | } |
| 104 | |
| 105 | export const tempdir = f.temp; |
| 106 |
no outgoing calls