MCPcopy Create free account
hub / github.com/angular/dev-infra / setTTY

Function setTTY

ng-dev/utils/test/resolve-yarn-bin.spec.ts:128–139  ·  view source on GitHub ↗
(val: boolean)

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected