Skip to content

Commit 5a6b724

Browse files
authored
test: check homeDir with empty xdg_config_home (#269)
1 parent 670225d commit 5a6b724

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/configuration-loader/src/__tests__/path-resolver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ describe('getScwConfigurationDirectory', () => {
3030
})
3131

3232
it(`uses the home directory if any`, () => {
33+
const oldXDG: string | undefined = updateEnv('XDG_CONFIG_HOME', '')
3334
expect(getScwConfigurationDirectory()?.length).toBeGreaterThan(0)
35+
setOrDeleteEnv('XDG_CONFIG_HOME', oldXDG)
3436
})
3537
})
3638

0 commit comments

Comments
 (0)