MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / writePortsFile

Function writePortsFile

scripts/guardian/shared.spec.ts:18–21  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

16})
17
18async function writePortsFile(content: string): Promise<void> {
19 await mkdir(join(home, 'data', 'config'), { recursive: true })
20 await writeFile(join(home, 'data', 'config', 'ports.json'), content)
21}
22
23describe('readPortsFile', () => {
24 it('missing file → empty config (defaults apply downstream)', async () => {

Callers 1

shared.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected