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

Function createTestFile

packages/core/src/services/fileDiscoveryService.test.ts:18–23  ·  view source on GitHub ↗
(filePath: string, content = '')

Source from the content-addressed store, hash-verified

16 let projectRoot: string;
17
18 async function createTestFile(filePath: string, content = '') {
19 const fullPath = path.join(projectRoot, filePath);
20 await fs.mkdir(path.dirname(fullPath), { recursive: true });
21 await fs.writeFile(fullPath, content);
22 return fullPath;
23 }
24
25 beforeEach(async () => {
26 testRootDir = await fs.mkdtemp(

Callers 1

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected