Something went wrong. Try again.
A collaborative coding-agent orchestrator for atproto radl.app
Something went wrong. Try again.
JavaScript
123456789101112131415161718192021222324252627282930313233343536import assert from 'node:assert/strict'import { mkdtemp, rm, writeFile } from 'node:fs/promises'import { tmpdir } from 'node:os'import { join } from 'node:path'import { spawnSync } from 'node:child_process'import { it } from 'node:test'import { goldenScenario } from '../dist/test/scenario.js'
it('prints a goal index from a directory of record fixtures', async () => { const directory = await mkdtemp(join(tmpdir(), 'radial-debug-')) try { const scenario = goldenScenario() await writeFile(join(directory, 'records.json'), JSON.stringify(scenario.records)) const result = spawnSync( process.execPath, [ new URL('../dist/cli.js', import.meta.url).pathname, 'index', scenario.goalUri, '--dir', directory, '--as-of', '2026-02-01T00:00:00Z', ], { encoding: 'utf8' }, ) assert.equal(result.status, 0, result.stderr) assert.match(result.stdout, /Build the index/) assert.match(result.stdout, /Open requests: 1/) assert.match(result.stdout, /Version chains:/) assert.match(result.stdout, /plan-v1.*plan-v2/) } finally { await rm(directory, { recursive: true, force: true }) }})