MCPcopy
hub / github.com/jestjs/jest / resetAllMocks

Method resetAllMocks

packages/jest-environment/src/index.ts:284–284  ·  view source on GitHub ↗

* Resets the state of all mocks. Equivalent to calling `.mockReset()` on * every mocked function.

()

Source from the content-addressed store, hash-verified

282 * every mocked function.
283 */
284 resetAllMocks(): Jest;
285 /**
286 * Resets the module registry - the cache of all required modules. This is
287 * useful to isolate modules where local state might conflict between tests.

Callers 9

jestAdapterFunction · 0.65
resetAllMocksMethod · 0.65
index.test.tsFile · 0.65
jasmine2Function · 0.65
jest.test.tsFile · 0.65
index.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected