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

Function getNodeWithoutChildrenHandler

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

Source from the content-addressed store, hash-verified

29const noop = () => {};
30
31function getNodeWithoutChildrenHandler(node: TreeNode, enabled: boolean) {
32 return function fn(done: (error?: unknown) => void = noop) {
33 node.execute(done, enabled);
34 };
35}
36
37function hasNoEnabledTest(node: TreeNode): boolean {
38 return (

Callers 1

getNodeHandlerFunction · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected