Skip to content

Commit c033a7d

Browse files
committed
test(cli): use native paths in welcome screen layout test
1 parent 42e4a13 commit c033a7d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/cli/src/tests/welcome-screen.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ test("welcome logo clips its right edge without wrapping in narrow terminals", (
3030

3131
test("static welcome output stays within the terminal width and keeps the settings panel aligned", () => {
3232
const settings = resolveSettingsSources({}, {}, { model: "deepseek-flash", baseURL: "https://example.com" }, {});
33+
const projectRoot = path.resolve("/tmp");
3334
for (const width of [40, 60, 62, 70, 72, 73, 74, 80, 111, 112, 120]) {
3435
const output = stripTerminalControls(
3536
renderToString(
@@ -38,8 +39,7 @@ test("static welcome output stays within the terminal width and keeps the settin
3839
{ flexDirection: "column", width },
3940
React.createElement(Static<string>, {
4041
items: ["welcome"],
41-
children: (key) =>
42-
React.createElement(WelcomeScreen, { key, projectRoot: "/private/tmp", settings, skills: [], width }),
42+
children: (key) => React.createElement(WelcomeScreen, { key, projectRoot, settings, skills: [], width }),
4343
})
4444
),
4545
{ columns: width }
@@ -69,7 +69,7 @@ test("static welcome output stays within the terminal width and keeps the settin
6969
["Model", settings.model],
7070
["Thinking Enabled", String(settings.thinkingEnabled)],
7171
["Reasoning Effort", settings.reasoningEffort],
72-
["CWD", "/private/tmp"],
72+
["CWD", projectRoot],
7373
]) {
7474
assert.ok(
7575
lines.some((line) => line.includes(label) && line.includes(value)),

0 commit comments

Comments
 (0)