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

Function getNodeWithChildrenHandler

packages/jest-jasmine2/src/treeProcessor.ts:60–71  ·  view source on GitHub ↗
(node: TreeNode, enabled: boolean)

Source from the content-addressed store, hash-verified

58 }
59
60 function getNodeWithChildrenHandler(node: TreeNode, enabled: boolean) {
61 return async function fn(done: (error?: unknown) => void = noop) {
62 nodeStart(node);
63 await queueRunnerFactory({
64 onException: (error: Error) => node.onException(error),
65 queueableFns: wrapChildren(node, enabled),
66 userContext: node.sharedUserContext(),
67 });
68 nodeComplete(node);
69 done();
70 };
71 }
72
73 function wrapChildren(node: TreeNode, enabled: boolean) {
74 if (!node.children) {

Callers 1

getNodeHandlerFunction · 0.85

Calls 4

wrapChildrenFunction · 0.85
doneFunction · 0.85
sharedUserContextMethod · 0.80
onExceptionMethod · 0.45

Tested by

no test coverage detected