Jest watch mode mock restoration configuration to prevent memory leaks
Goal: Keep Jest test suite memory consumption stable when running in watch mode while tests use mocked modules. Constraint: Enabling restoreMocks guarantees each test starts with a clean module implementation but may add noticeable overhead because Jest deep‑clones modules; the current default keeps restoreMocks false to preserve speed. Uncertainty: It is un