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

Function makeProject

__tests__/wsl-shared-index.test.ts:130–134  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

128});
129
130async function makeProject(dir: string): Promise<void> {
131 fs.mkdirSync(path.join(dir, 'src'), { recursive: true });
132 fs.writeFileSync(path.join(dir, 'src', 'sample.ts'), 'export function parseToken() { return 1; }\n');
133 (await CodeGraph.init(dir, { index: true })).close();
134}
135
136describe('the data directory on a Windows drive under WSL', () => {
137 let root: string;

Callers 1

Calls 3

closeMethod · 0.65
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected