mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-16 19:44:14 +00:00
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:
parent
ce78ac52c1
commit
c782907de8
1 changed files with 3 additions and 0 deletions
|
|
@ -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',
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue