From d7e3e2b986984962514d63e6040c14b57988fabc Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Wed, 9 Sep 2026 12:33:49 +0800 Subject: [PATCH] fix(test): give the native-surface terminal descriptor a component TabDescriptor requires `component`; the fixture omitted it, so CI's typecheck step failed on the phase-2 branch (vitest never compiled the file's props strictly, so the local run stayed green). --- tests/native-surface.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/native-surface.spec.ts b/tests/native-surface.spec.ts index cc5b08d..04cd5f4 100644 --- a/tests/native-surface.spec.ts +++ b/tests/native-surface.spec.ts @@ -85,7 +85,7 @@ describe('service routing into the native surface', () => { store.setSession('s1') const service = createBetterSidebarService(store) service.setSurface(surface) - service.registerTab({ id: 'terminal', title: 'Terminal', createTab: state => ({ tab: { id: `terminal:${state.nextTerminal}`, type: 'terminal', title: 'Terminal', meta: { n: state.nextTerminal } } }) }) + service.registerTab({ id: 'terminal', title: 'Terminal', component: () => null, createTab: state => ({ tab: { id: `terminal:${state.nextTerminal}`, type: 'terminal', title: 'Terminal', meta: { n: state.nextTerminal } } }) }) service.registerTab({ id: 'git', title: 'Changes', component: () => null }) service.registerTab({ id: 'editor', title: 'Files', component: () => null }) return { surface, calls, service }