Skip to content

Commit 88d3048

Browse files
committed
test(command-surface): pin batch names to daemon writers
1 parent 2b86cd5 commit 88d3048

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎packages/command-surface/src/index.test.ts‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import { expect, test } from 'vitest';
2-
import { prepareDaemonCommandRequest } from './index.ts';
1+
import { expect, expectTypeOf, test } from 'vitest';
2+
import { prepareDaemonCommandRequest, type DaemonCommandName } from './index.ts';
3+
import type { BatchCommandName } from './batch/projection.ts';
34

45
const host = { env: {}, cwd: '/workspace' };
56

@@ -25,3 +26,7 @@ test('projection rejects an invalid shared client option', async () => {
2526
'scroll requires direction',
2627
);
2728
});
29+
30+
test('every structured batch command has a daemon writer', () => {
31+
expectTypeOf<BatchCommandName>().toExtend<DaemonCommandName>();
32+
});

0 commit comments

Comments
 (0)