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:
@@ -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~/')
|
||||
|
||||
Reference in New Issue
Block a user