MCPcopy Index your code
hub / github.com/anus-dev/ANUS / createTestFile

Function createTestFile

packages/cli/src/ui/hooks/atCommandProcessor.test.ts:32–36  ·  view source on GitHub ↗
(fullPath: string, fileContents: string)

Source from the content-addressed store, hash-verified

30 let abortController: AbortController;
31
32 async function createTestFile(fullPath: string, fileContents: string) {
33 await fsPromises.mkdir(path.dirname(fullPath), { recursive: true });
34 await fsPromises.writeFile(fullPath, fileContents);
35 return path.resolve(testRootDir, fullPath);
36 }
37
38 beforeEach(async () => {
39 vi.resetAllMocks();

Callers 1

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected