MCPcopy Create free account
hub / github.com/vercel/vercel / fail

Function fail

packages/cli/test/dev/utils.ts:181–186  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

179 };
180
181 const fail = (error: Error) => {
182 settle(() => {
183 socket.destroy();
184 reject(error);
185 });
186 };
187
188 socket.once('error', fail);
189 socket.on('data', chunk => {

Callers 4

webSocketEchoFunction · 0.70
index.test.tsFile · 0.50
app.spec.jsFile · 0.50
+page.server.tsFile · 0.50

Calls 2

settleFunction · 0.70
destroyMethod · 0.45

Tested by

no test coverage detected