MCPcopy Create free account
hub / github.com/appium/appium / createFakeStream

Function createFakeStream

packages/logger/test/unit/basic.spec.ts:274–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273 describe('routing by severity', function () {
274 function createFakeStream() {
275 const chunks: string[] = [];
276 const stream = Object.assign(new Stream(), {
277 write: (m: string) => {
278 chunks.push(m);
279 return true;
280 },
281 writable: true,
282 isTTY: false,
283 end: () => {},
284 });
285 return {stream, chunks};
286 }
287
288 let out: ReturnType<typeof createFakeStream>;
289 let err: ReturnType<typeof createFakeStream>;

Callers 1

basic.spec.tsFile · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected