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

Function put

__tests__/ui-repeated-keys.test.ts:110–113  ·  view source on GitHub ↗
(rel: string, text: string)

Source from the content-addressed store, hash-verified

108 it('fills the page past routes it drops after reading them, like a test file\'s', async () => {
109 const testsFirst = path.join(root, 'tests-first');
110 const put = (rel: string, text: string) => {
111 fs.mkdirSync(path.dirname(path.join(testsFirst, rel)), { recursive: true });
112 fs.writeFileSync(path.join(testsFirst, rel), text);
113 };
114 put('package.json', JSON.stringify({ dependencies: { express: '^4.0.0' } }));
115 // Sorts before src/, and every handler is test code, so these rows are
116 // dropped only once they are read: they must not use up the window.

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected