Skip to content

Commit c43cbd2

Browse files
test(server): compare the sign-in hint's config dir as a native path
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 1c616dc commit c43cbd2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/server/src/provider/ProviderRegistry.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3170,9 +3170,11 @@ it.layer(
31703170
"Claude Code is not authenticated. Run `claude auth login` and try again.",
31713171
);
31723172
} else {
3173-
assert.match(
3173+
// A home path is resolved to a native path; an inherited value is kept literal.
3174+
const expected = homePath ? (yield* Path.Path).resolve(configDir) : configDir;
3175+
assert.include(
31743176
status.message ?? "",
3175-
new RegExp(`CLAUDE_CONFIG_DIR.*${configDir}`),
3177+
`CLAUDE_CONFIG_DIR set to ${JSON.stringify(expected)}`,
31763178
"a bare `claude auth login` signs in ~/.claude, not this instance's config dir",
31773179
);
31783180
}

0 commit comments

Comments
 (0)