MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createTestFile

Function createTestFile

packages/core/src/utils/bfsFileSearch.test.ts:24–29  ·  view source on GitHub ↗
(content: string, ...pathSegments: string[])

Source from the content-addressed store, hash-verified

22 }
23
24 async function createTestFile(content: string, ...pathSegments: string[]) {
25 const fullPath = path.join(testRootDir, ...pathSegments);
26 await fsPromises.mkdir(path.dirname(fullPath), { recursive: true });
27 await fsPromises.writeFile(fullPath, content);
28 return fullPath;
29 }
30
31 beforeEach(async () => {
32 testRootDir = await fsPromises.mkdtemp(

Callers 1

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected