restoreMocks
- Type:
boolean - Default:
false - CLI:
--restoreMocks
Restore object methods replaced by rs.spyOn() before every test. Mock call history and implementations remain unchanged, and standalone mocks created with rs.fn() are not affected.
When restoreMocks is enabled, Rstest calls rs.restoreAllMocks() before each test.