Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/tests/json-parity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ async function withSandbox<T>(fn: (env: NodeJS.ProcessEnv) => Promise<T>): Promi
const env: NodeJS.ProcessEnv = {
...process.env,
HOME: tempHome,
// `os.homedir()` ignores HOME on Windows and reads USERPROFILE instead, so
// without this the sandbox leaks into the real home dir and accounts bleed
// across tests (parallel install then sees stale profiles). Setting both
// keeps the sandbox isolated on every platform.
USERPROFILE: tempHome,
CODEX_AUTH_CODEX_DIR: codexDir,
// Make oclif treat stdout as non-TTY so the update-notifier hook stays
// quiet and no color codes leak into stdout.
Expand Down
Loading