MCPcopy Create free account
hub / github.com/angular/angular / drain

Function drain

packages/compiler-cli/preprocessor/test/sidecar_framing_spec.ts:32–38  ·  view source on GitHub ↗
(stream: AsyncGenerator<CompilationChunk>)

Source from the content-addressed store, hash-verified

30const PS = '\u2029';
31
32async function drain(stream: AsyncGenerator<CompilationChunk>): Promise<CompilationChunk[]> {
33 const chunks: CompilationChunk[] = [];
34 for await (const chunk of stream) {
35 chunks.push(chunk);
36 }
37 return chunks;
38}
39
40describe('sidecar JSON-RPC framing', () => {
41 it('preserves U+2028 / U+2029 in templates analyzed by the ng-analyze sidecar', async () => {

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected