MCPcopy
hub / github.com/Fission-AI/OpenSpec / createOpenSpecRoot

Function createOpenSpecRoot

test/commands/store-root-selection.test.ts:75–79  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

73 });
74
75 function createOpenSpecRoot(rootDir: string): void {
76 fs.mkdirSync(path.join(rootDir, 'openspec', 'specs'), { recursive: true });
77 fs.mkdirSync(path.join(rootDir, 'openspec', 'changes', 'archive'), { recursive: true });
78 fs.writeFileSync(path.join(rootDir, 'openspec', 'config.yaml'), 'schema: spec-driven\n');
79 }
80
81 async function registerStoreFixture(id: string): Promise<string> {
82 const root = path.join(tempDir, 'stores', id);

Calls

no outgoing calls

Tested by

no test coverage detected