MCPcopy Create free account
hub / github.com/PatrickJS/awesome-cursorrules / write

Function write

scripts/cleanup-legacy-artifacts.test.mjs:13–17  ·  view source on GitHub ↗
(root, filePath, content)

Source from the content-addressed store, hash-verified

11}
12
13function write(root, filePath, content) {
14 const fullPath = join(root, filePath);
15 mkdirSync(dirname(fullPath), { recursive: true });
16 writeFileSync(fullPath, content);
17}
18
19test("removes only the local legacy migration artifacts", async () => {
20 const root = makeFixture();

Calls

no outgoing calls

Tested by

no test coverage detected