MCPcopy
hub / github.com/resend/react-email / appendOutput

Function appendOutput

packages/render/e2e/integrations.spec.ts:96–99  ·  view source on GitHub ↗
(source: 'stdout' | 'stderr', chunk: Buffer)

Source from the content-addressed store, hash-verified

94const startWebServer = async (command: string, url: string, cwd: string) => {
95 const output: string[] = [];
96 const appendOutput = (source: 'stdout' | 'stderr', chunk: Buffer) => {
97 output.push(`[${source}] ${chunk.toString()}`);
98 output.splice(0, Math.max(0, output.length - 40));
99 };
100 const formatOutput = () =>
101 output.length === 0
102 ? 'No server output was captured.'

Callers 1

startWebServerFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…