MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unpack

Function unpack

__tests__/windows-powershell-module-path.test.ts:281–282  ·  view source on GitHub ↗
(to: string, before: string[] = [])

Source from the content-addressed store, hash-verified

279 }, 120_000);
280
281 const unpack = (to: string, before: string[] = []) =>
282 [...before, `Expand-Archive -Path ${psq(zip)} -DestinationPath ${psq(to)} -Force`, `[Console]::Out.Write((Get-Command Expand-Archive).Module.Version.ToString())`].join('\n');
283
284 it('the stand-in fails as PowerShell 7’s module does: the inherited path alone breaks unpacking', async () => {
285 const r = await powershell(unpack(path.join(dir, 'out-inherited')), poisoned);

Calls 2

psqFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected