Fix cli-plan test failing on Windows

os.homedir() on Windows uses USERPROFILE, not HOME. Set both env vars
in the test so the temp dir is respected as the home directory on all
platforms.
This commit is contained in:
brunoleemann-code 2026-05-06 18:40:03 +02:00
parent ce78ac52c1
commit c782907de8

View file

@ -11,6 +11,9 @@ function runCli(args: string[], home: string) {
env: {
...process.env,
HOME: home,
USERPROFILE: home, // os.homedir() uses USERPROFILE on Windows
HOMEPATH: home,
HOMEDRIVE: '',
},
encoding: 'utf-8',
})