MCPcopy
hub / github.com/vuejs/core / pipeToWritable

Function pipeToWritable

packages/server-renderer/__tests__/render.spec.ts:52–61  ·  view source on GitHub ↗
(app: any, context?: any)

Source from the content-addressed store, hash-verified

50}
51
52const pipeToWritable = (app: any, context?: any) => {
53 const stream = new Transform({
54 transform(data, _encoding, cb) {
55 this.push(data)
56 cb()
57 },
58 })
59 pipeToNodeWritable(app, context, stream)
60 return promisifyStream(stream)
61}
62
63// we run the same tests twice, once for renderToString, once for renderToStream
64testRender(`renderToString`, renderToString)

Callers

nothing calls this directly

Calls 2

pipeToNodeWritableFunction · 0.90
promisifyStreamFunction · 0.85

Tested by

no test coverage detected