MCPcopy
hub / github.com/webpack/webpack-dev-server / getStderrOutput

Function getStderrOutput

test/server/proxy-option.test.js:121–128  ·  view source on GitHub ↗
(stderrSpy)

Source from the content-addressed store, hash-verified

119 let proxyServer2;
120
121 function getStderrOutput(stderrSpy) {
122 return stderrSpy.mock.calls
123 .map((call) => call[0])
124 .filter((output) => !output.includes("DeprecationWarning"))
125 .join("")
126 .replaceAll(/127\.0\.0\.1:\d+/g, "127.0.0.1:<port>")
127 .replaceAll(/\[ENOTFOUND\]|\[EAI_AGAIN\]/g, "[<DNS_ERROR>]");
128 }
129
130 function getConsoleErrorOutput(consoleSpy) {
131 return consoleSpy.mock.calls

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…