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

Function write

__tests__/same-module-copy-resolution.test.ts:19–23  ·  view source on GitHub ↗
(dir: string, rel: string, lines: string[])

Source from the content-addressed store, hash-verified

17const ROOT = 'a/b/c/d/e/f';
18
19function write(dir: string, rel: string, lines: string[]): void {
20 const full = path.join(dir, rel);
21 fs.mkdirSync(path.dirname(full), { recursive: true });
22 fs.writeFileSync(full, lines.join('\n') + '\n');
23}
24
25describe('exact-name resolution prefers the caller\'s own copy of a duplicated module', () => {
26 let tempDir: string;

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected