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

Function bundleExists

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

Source from the content-addressed store, hash-verified

34describe('detectInstallMethod', () => {
35 // A bundle exists if a vendored node + launcher sit next to lib/.
36 function bundleExists(present: Set<string>) {
37 return (p: string) => present.has(p.replace(/\\/g, '/'));
38 }
39
40 it('detects a unix bundle and derives the install dir from the versions/ layout', () => {
41 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