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

Function write

__tests__/exact-name-binding.test.ts:75–75  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

73 it('preserves nested scopes and import aliases through re-exports and symbol changes', async () => {
74 root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-exact-binding-'));
75 const write = (file: string, source: string) => fs.writeFileSync(path.join(root!, file), source);
76 write('definition.ts', 'export function original() { return 1; }');
77 write('barrel.ts', "export { original as exposed } from './definition';");
78 write('caller.ts', "import { exposed as alias } from './barrel';\nexport function caller() { return alias(); }");

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected