| 601 | } |
| 602 | |
| 603 | function registerContext(context: MockProcedureContext<Procedure>, state: MockContext, prototypeState?: MockContext) { |
| 604 | const contextIndex = state.contexts.push(context) |
| 605 | const contextPrototypeIndex = prototypeState?.contexts.push(context) |
| 606 | return [contextIndex, contextPrototypeIndex] as const |
| 607 | } |
| 608 | |
| 609 | function copyOriginalStaticProperties(mock: Mock<Procedure | Constructable>, original: Procedure | Constructable) { |
| 610 | const { properties, descriptors } = getAllProperties(original) |