MCPcopy Index your code
hub / github.com/devcontainers/cli / isolateFixture

Function isolateFixture

src/test/container-features/lockfile.test.ts:377–382  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

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 => {

Callers 1

lockfile.test.tsFile · 0.85

Calls 1

shellExecFunction · 0.90

Tested by

no test coverage detected