MCPcopy
hub / github.com/colbymchenry/codegraph / bundleExists

Function bundleExists

__tests__/upgrade.test.ts:30–32  ·  view source on GitHub ↗
(present: Set<string>)

Source from the content-addressed store, hash-verified

28describe('detectInstallMethod', () => {
29 // A bundle exists if a vendored node + launcher sit next to lib/.
30 function bundleExists(present: Set<string>) {
31 return (p: string) => present.has(p.replace(/\\/g, '/'));
32 }
33
34 it('detects a unix bundle and derives the install dir from the versions/ layout', () => {
35 const root = '/home/u/.codegraph/versions/v0.9.9';

Callers 1

upgrade.test.tsFile · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected