Skip to content

Commit 6b95e61

Browse files
committed
Fix test helper to prevent host environment leakage
Add env: {} to makeContext helper in tty-allocation.spec.js to prevent buildEnvironment from falling back to process.env. This ensures test isolation and matches the pattern used in build-exec-environment.spec.js.
1 parent 4e04ce4 commit 6b95e61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/tty-allocation.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const makeContext = (overrides = {}) => {
2727
stdin: {isTTY: false, isClosed: false, ...stdin},
2828
stdout: {isTTY: false, columns: 80, rows: 24, ...stdout},
2929
stderr: {isTTY: false, ...stderr},
30+
env: {},
3031
isNodeMode: true,
3132
ci: false,
3233
landoColorLevel: 0,

0 commit comments

Comments
 (0)