(val: boolean)
| 126 | }); |
| 127 | |
| 128 | function setTTY(val: boolean) { |
| 129 | Object.defineProperty(process.stdout, 'isTTY', { |
| 130 | value: val, |
| 131 | configurable: true, |
| 132 | writable: true, |
| 133 | }); |
| 134 | Object.defineProperty(process.stdin, 'isTTY', { |
| 135 | value: val, |
| 136 | configurable: true, |
| 137 | writable: true, |
| 138 | }); |
| 139 | } |
| 140 | |
| 141 | it('should ignore local yarn path and warn if untrusted (non-TTY, no env)', async () => { |
| 142 | setTTY(false); |
no outgoing calls
no test coverage detected