JUMP TOClass DefinitionsRequestResponseEventsPublic APIconnectsetModebootstrapWorkercapturedRequestsmocksactiveMocksgroupssetAppNamegetAppNameimportexportaddGrouptoggleGroupupdateGroupremoveGroupduplicateGroupmockRequestupdateMockremoveMocktoggleMockclearStorageononceoffexportMocksstartRecordingstopRecordinggetCapturedRequestgetMockgetGroupimportUrlduplicateMockgetMatchingMocksPowered by toggleMocktoggleMock(mockId) Toggle a mock on or off based on its current state. JavaScriptimport Mimic from 'mimic'; Mimic.toggleMock('mock-id');