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

Function cleanup

src/test/container-features/lockfile.test.ts:228–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 const workspaceFolder = path.join(__dirname, 'configs/lockfile-generate-from-empty-file');
227 const lockfilePath = path.join(workspaceFolder, '.devcontainer', 'devcontainer-lock.json');
228 const cleanup = async () => {
229 await rmLocal(lockfilePath, { force: true });
230 await shellExec(`touch ${lockfilePath}`);
231 };
232
233 await cleanup();
234 const res = await shellExec(`${cli} build --workspace-folder ${workspaceFolder}`);

Callers 1

lockfile.test.tsFile · 0.70

Calls 1

shellExecFunction · 0.90

Tested by

no test coverage detected