(name: string)
| 375 | // -- Graduated lockfile tests -- |
| 376 | |
| 377 | async function isolateFixture(name: string): Promise<string> { |
| 378 | const src = path.join(__dirname, 'configs', name); |
| 379 | const dst = path.join(__dirname, 'tmp-fixtures', `${name}-${process.hrtime.bigint()}`); |
| 380 | await shellExec(`mkdir -p ${path.dirname(dst)} && cp -r ${src} ${dst}`); |
| 381 | return dst; |
| 382 | } |
| 383 | |
| 384 | async function lockfileExists(p: string): Promise<boolean> { |
| 385 | return readLocalFile(p).then(() => true, err => { |
no test coverage detected