Skip to content

Commit 45e58df

Browse files
luoxuanzaoQoder-AI
andcommitted
test: make cli-edition config-root assertions path-separator agnostic
The config-root test hardcoded POSIX separators while getQoderCliHomeDir builds paths with path.join, which fails on the Windows CI runner. Build expectations with path.join as well. Co-authored-by: QoderAI (Qwen 3.8 Max) <qoder_ai@qoder.com>
1 parent ec2618b commit 45e58df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/qoder/config/cli-edition.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ describe('cli-edition', () => {
3838
});
3939

4040
it('maps config roots per edition', () => {
41-
expect(getQoderCliHomeDir('global', '/home/test')).toBe('/home/test/.qoder');
42-
expect(getQoderCliHomeDir('cn', '/home/test')).toBe('/home/test/.qoder-cn');
41+
expect(getQoderCliHomeDir('global', '/home/test')).toBe(path.join('/home/test', '.qoder'));
42+
expect(getQoderCliHomeDir('cn', '/home/test')).toBe(path.join('/home/test', '.qoder-cn'));
4343
});
4444

4545
it('builds the login command from the binary name', () => {

0 commit comments

Comments
 (0)