mock.restoreAll()


此函数会恢复由该 MockTracker 之前创建的所有模拟的默认行为。与 mock.reset() 不同,mock.restoreAll() 不会将模拟与 MockTracker 实例解除关联。

🌐 This function restores the default behavior of all mocks that were previously created by this MockTracker. Unlike mock.reset(), mock.restoreAll() does not disassociate the mocks from the MockTracker instance.