mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
section 6: Phase 6: Launch a multi-run from the TUI (/multirun)
This commit is contained in:
1 parent
e63f756c32
commit
0aaa2bd3d6
6 files changed
+590
-3
No files matched your search
@@ -230,6 +230,19 @@ describe('setupOcm', () => {
|
||||
const goal = factory().commands.find((entry) => entry.id === 'ocm.goal')
|
||||
expect(goal?.slash).toEqual({ name: 'goal', arguments: true })
|
||||
})
|
||||
|
||||
it('exposes the multi-run slash command', async () => {
|
||||
const fake = createFakeContext()
|
||||
|
||||
await setupOcm(fake.context, vi.fn(), noFeatures)
|
||||
renderAppSlot(fake)
|
||||
|
||||
const factory = fake.layer.mock.calls[0]![0] as () => {
|
||||
commands: { id: string; slash?: { name: string; arguments?: true } }[]
|
||||
}
|
||||
const multiRun = factory().commands.find((entry) => entry.id === 'ocm.multirun')
|
||||
expect(multiRun?.slash).toEqual({ name: 'multirun', arguments: true })
|
||||
})
|
||||
})
|
||||
|
||||
describe('ocm.session.move command', () => {
|
||||
|
||||
Reference in new issue
Block a user