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

Function fn

packages/jest-mock/src/__tests__/index.test.ts:136–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 it('fixes illegal function name properties', () => {
135 function getMockFnWithOriginalName(name) {
136 const fn = () => {};
137 Object.defineProperty(fn, 'name', {value: name});
138
139 return moduleMocker.generateFromMetadata(moduleMocker.getMetadata(fn));

Callers 15

connectFunction · 0.90
index.test.tsFile · 0.70
collectOutputFunction · 0.50
waitForChangeFunction · 0.50
testWithVmEsmFunction · 0.50
testWithSyncEsmFunction · 0.50
hm_itFunction · 0.50
concurrentFnFunction · 0.50
testCaseFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected