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

Method set

packages/jest-matcher-utils/src/Replaceable.ts:62–68  ·  view source on GitHub ↗
(key: any, value: any)

Source from the content-addressed store, hash-verified

60 }
61
62 set(key: any, value: any): void {
63 if (this.type === 'map') {
64 this.object.set(key, value);
65 } else {
66 this.object[key] = value;
67 }
68 }
69}
70/* eslint-enable */

Callers 15

constraintsFunction · 0.45
eventHandlerFunction · 0.45
ensureNoDuplicateConfigsFunction · 0.45
__setMockFilesFunction · 0.45
__setMockFilesFunction · 0.45
watchFunction · 0.45
checkForConflictsFunction · 0.45
scheduleTestsMethod · 0.45
collectHandlesFunction · 0.45
formatHandleErrorsFunction · 0.45
_fakeSetIntervalMethod · 0.45

Calls

no outgoing calls

Tested by 1

extractCountFunction · 0.36