fix(ci): stabilize TUI cwd-abbreviation and skill-catalog test expectations

Two CI-only test failures on the personal TUI/skills stack:

- packages/ui/tui/tests/tui.spec.ts anchored the dark-palette test at
  process.cwd(), which is not guaranteed under $HOME; on CI runners the
  prompt rendered an absolute path instead of the `~/` abbreviation. Anchor
  cwd under homedir() so the assertion is deterministic.
- examples/tui-agent/tests/tui-keyless-smoke.e2e.ts asserted stale
  dsh-customize / dsh-upgrade skill descriptions. Sync the expectations to
  the bundled SKILL.md frontmatter.
This commit is contained in:
Turtle
2026-07-27 19:30:04 +08:00
parent 2fda7c1da5
commit f9d2ab09ea
2 changed files with 5 additions and 3 deletions

View File

@@ -4150,9 +4150,11 @@ describe('terminal mounting', () => {
}
}
const terminal = new QueryFailTerminal()
// Anchor cwd under $HOME so the prompt renders the `~/` abbreviation
// deterministically; process.cwd() is not guaranteed under $HOME in CI.
const result = await createTuiTestHarness(terminal, vi.fn(), {
config: { theme: { color: true } },
cwd: process.cwd(),
cwd: join(homedir(), 'projects', 'dsh-tui'),
})
await tick()
expect(terminal.output).toContain('\x1b[94m~/')