MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / writeFixture

Function writeFixture

tests/native-ast.test.ts:60–67  ·  view source on GitHub ↗
(name: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

58}
59
60async function writeFixture(name: string, files: Record<string, string>): Promise<string> {
61 const dir = join(tmpdir(), `codesight-native-${name}-${process.pid}`);
62 await mkdir(dir, { recursive: true });
63 for (const [f, content] of Object.entries(files)) {
64 await writeFile(join(dir, f), content);
65 }
66 return dir;
67}
68
69describe("native-ast config resolution", () => {
70 it("safeParseConfigText extracts nested nativeAst without a TS loader", async () => {

Callers 1

native-ast.test.tsFile · 0.70

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected