MCPcopy
hub / github.com/jestjs/jest / workerReply

Function workerReply

packages/jest-worker/src/__tests__/Farm.test.ts:38–41  ·  view source on GitHub ↗
(i: number, error: Error | null = null, result?: unknown)

Source from the content-addressed store, hash-verified

36}
37
38function workerReply(i: number, error: Error | null = null, result?: unknown) {
39 workerReplyStart(i);
40 workerReplyEnd(i, error, result);
41}
42
43function workerReplyCustomMessage(i: number, message: unknown) {
44 mockWorkerCalls[i].onCustomMessage(message);

Callers 1

Farm.test.tsFile · 0.85

Calls 2

workerReplyStartFunction · 0.85
workerReplyEndFunction · 0.85

Tested by

no test coverage detected