diff --git a/packages/configuration-loader/src/__tests__/path-resolver.ts b/packages/configuration-loader/src/__tests__/path-resolver.ts index b3c5574cf..bd2c3df98 100644 --- a/packages/configuration-loader/src/__tests__/path-resolver.ts +++ b/packages/configuration-loader/src/__tests__/path-resolver.ts @@ -30,7 +30,9 @@ describe('getScwConfigurationDirectory', () => { }) it(`uses the home directory if any`, () => { + const oldXDG: string | undefined = updateEnv('XDG_CONFIG_HOME', '') expect(getScwConfigurationDirectory()?.length).toBeGreaterThan(0) + setOrDeleteEnv('XDG_CONFIG_HOME', oldXDG) }) })