JUMP TOClass DefinitionsRequestResponseEventsPublic APIconnectsetModebootstrapWorkercapturedRequestsmocksactiveMocksgroupssetAppNamegetAppNameimportexportaddGrouptoggleGroupupdateGroupremoveGroupduplicateGroupmockRequestupdateMockremoveMocktoggleMockclearStorageononceoffexportMocksstartRecordingstopRecordinggetCapturedRequestgetMockgetGroupimportUrlduplicateMockgetMatchingMocksPowered by toggleGrouptoggleGroup(groupId) Toggle a group on or off depending on it's current state. JavaScriptimport Mimic from 'mimic'; const group = Mimic.groups[0]; console.log(group.active); // true Mimic.toggleGroup(group.id); console.log(group.active); // false