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

Function createHealthyOpenSpecRoot

test/helpers/store-git.ts:10–14  ·  view source on GitHub ↗
(root: string, configName = 'config.yaml')

Source from the content-addressed store, hash-verified

8 */
9
10export function createHealthyOpenSpecRoot(root: string, configName = 'config.yaml'): void {
11 fs.mkdirSync(path.join(root, 'openspec', 'specs'), { recursive: true });
12 fs.mkdirSync(path.join(root, 'openspec', 'changes', 'archive'), { recursive: true });
13 fs.writeFileSync(path.join(root, 'openspec', configName), `schema: ${DEFAULT_OPENSPEC_SCHEMA}\n`);
14}
15
16/**
17 * Isolates real git invocations from the host's gitconfig (signing, hooks,

Callers 5

store-git.test.tsFile · 0.85
store.test.tsFile · 0.85
makeUnregisteredStoreFunction · 0.85

Calls

no outgoing calls

Tested by 1

makeUnregisteredStoreFunction · 0.68