(mock: Mock<Procedure | Constructable>, original: Procedure | Constructable)
| 607 | } |
| 608 | |
| 609 | function copyOriginalStaticProperties(mock: Mock<Procedure | Constructable>, original: Procedure | Constructable) { |
| 610 | const { properties, descriptors } = getAllProperties(original) |
| 611 | |
| 612 | for (const key of properties) { |
| 613 | const descriptor = descriptors[key]! |
| 614 | const mockDescriptor = getDescriptor(mock, key) |
| 615 | if (mockDescriptor) { |
| 616 | continue |
| 617 | } |
| 618 | |
| 619 | Object.defineProperty(mock, key, descriptor) |
| 620 | } |
| 621 | } |
| 622 | |
| 623 | const ignoreProperties = new Set<string | symbol>([ |
| 624 | 'length', |
no test coverage detected