MCPcopy
hub / github.com/nestjs/nest / written

Function written

packages/core/test/router/sse-stream.spec.ts:10–13  ·  view source on GitHub ↗
(stream: Writable)

Source from the content-addressed store, hash-verified

8const noop = () => {};
9
10const written = (stream: Writable) =>
11 new Promise((resolve, reject) =>
12 stream.on('error', reject).on('finish', resolve),
13 );
14
15class Sink extends Writable implements HeaderStream {
16 private readonly chunks: string[] = [];

Callers 1

sse-stream.spec.tsFile · 0.70

Calls 1

onMethod · 0.65

Tested by

no test coverage detected