* Restore all mocks created by this MockTracker instance.
()
| 744 | * Restore all mocks created by this MockTracker instance. |
| 745 | */ |
| 746 | restoreAll() { |
| 747 | for (let i = 0; i < this.#mocks.length; i++) { |
| 748 | const { ctx, restore } = this.#mocks[i]; |
| 749 | |
| 750 | FunctionPrototypeCall(restore, ctx); |
| 751 | } |
| 752 | } |
| 753 | |
| 754 | #setupMock(ctx, fnToMatch) { |
| 755 | const mock = new Proxy(fnToMatch, { |
no outgoing calls
no test coverage detected