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

Function writeFixture

tests/plugins/cicd.test.ts:9–18  ·  view source on GitHub ↗
(subdir: string, files: Record<string, string>)

Source from the content-addressed store, hash-verified

7const FIXTURE_ROOT = join(dirname(fileURLToPath(import.meta.url)), "..", "fixtures");
8
9async function writeFixture(subdir: string, files: Record<string, string>) {
10 const dir = join(FIXTURE_ROOT, subdir);
11 await mkdir(dir, { recursive: true });
12 for (const [name, content] of Object.entries(files)) {
13 const filePath = join(dir, name);
14 await mkdir(dirname(filePath), { recursive: true });
15 await writeFile(filePath, content);
16 }
17 return dir;
18}
19
20// =================== YAML PARSER TESTS ===================
21

Callers 1

cicd.test.tsFile · 0.70

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected