From f224bc347bab7c8ae4dce6014b22683bfab12ca7 Mon Sep 17 00:00:00 2001 From: Turtle Date: Thu, 30 Jul 2026 10:59:56 +0800 Subject: [PATCH] test(cli): follow consolidated config tree --- apps/cli/tests/fixtures/tui-scripted.cordis.yml | 4 ++-- apps/cli/tests/tui-keyless-smoke.e2e.ts | 14 -------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/apps/cli/tests/fixtures/tui-scripted.cordis.yml b/apps/cli/tests/fixtures/tui-scripted.cordis.yml index bde14e4627..69921c7e86 100644 --- a/apps/cli/tests/fixtures/tui-scripted.cordis.yml +++ b/apps/cli/tests/fixtures/tui-scripted.cordis.yml @@ -10,13 +10,13 @@ # The scripted adapter replaces the DeepSeek one: no key, no network. A patch's # `name` is an assertion rather than a replacement, so the base row is disabled # and the adapter inserted. Relative specifiers resolve against the INCLUDED -# file's directory (apps/cli), because the include moves baseUrl to that tree. +# file's directory (apps/cli/config), because the include moves baseUrl there. - id: llm-deepseek disabled: true - insert: - id: scripted-llm - name: './tests/fixtures/tui-scripted-llm.ts' + name: '../tests/fixtures/tui-scripted-llm.ts' - id: agent-loop config: diff --git a/apps/cli/tests/tui-keyless-smoke.e2e.ts b/apps/cli/tests/tui-keyless-smoke.e2e.ts index 4da6203477..59042892e1 100644 --- a/apps/cli/tests/tui-keyless-smoke.e2e.ts +++ b/apps/cli/tests/tui-keyless-smoke.e2e.ts @@ -12,7 +12,6 @@ import { runTuiPtySmoke, type TuiPtySmokeOptions } from './pty-harness.ts' const dshBinScript = fileURLToPath(new URL('../src/bin.ts', import.meta.url)) // `--config` layers an overlay over the shared base, so the default surface // needs no config argument at all; these are the overlays under test. -const codeModeConfigPath = fileURLToPath(new URL('../../../examples/code-mode/cordis.yml', import.meta.url)) const scriptedConfigPath = fileURLToPath(new URL('./fixtures/tui-scripted.cordis.yml', import.meta.url)) const tsconfigPath = fileURLToPath(new URL('../../../tsconfig.json', import.meta.url)) @@ -315,19 +314,6 @@ describe('dsh TUI keyless smoke (real Loader tree in a PTY)', () => { expect(output).toContain('\u001B[?2004l') }, LOADER_SMOKE_TEST_TIMEOUT_MS) - it('boots the Code Mode overlay tree, renders its banner, and exits cleanly', async () => { - // The overlay's only keyless composition proof: the include+patch tree, - // worker code runtime, and one-tool registry all mount before the banner. - const output = await smoke({ - label: 'dsh code mode', - tempDirPrefix: 'dsh-tui-code-mode-', - configPath: codeModeConfigPath, - actions: [{ waitFor: 'TUI Code Mode ready.', send: '/exit\r' }], - }) - expect(output).toContain('TUI Code Mode ready.') - expect(output).toContain('\u001B[?2004l') - }, LOADER_SMOKE_TEST_TIMEOUT_MS) - }) describe('dsh CLI keyless smoke (apps/cli through the same PTY)', () => {