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

Function createTestFile

packages/core/src/utils/memoryDiscovery.test.ts:39–43  ·  view source on GitHub ↗
(fullPath: string, fileContents: string)

Source from the content-addressed store, hash-verified

37 }
38
39 async function createTestFile(fullPath: string, fileContents: string) {
40 await fsPromises.mkdir(path.dirname(fullPath), { recursive: true });
41 await fsPromises.writeFile(fullPath, fileContents);
42 return path.resolve(testRootDir, fullPath);
43 }
44
45 beforeEach(async () => {
46 testRootDir = await fsPromises.mkdtemp(

Callers 1

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected