R/webmockr_reset.R

Defines functions webmockr_reset

Documented in webmockr_reset

#' @title webmockr_reset
#' @description Clear all stubs and the request counter
#' @export
#' @return nothing
#' @seealso [stub_registry_clear()] [request_registry_clear()]
#' @details this function runs [stub_registry_clear()] and
#' [request_registry_clear()] - so you can run those two yourself
#' to achieve the same thing
#' @examples
#' # webmockr_reset()
webmockr_reset <- function() {
  stub_registry_clear()
  request_registry_clear()
  invisible(NULL)
}
ropenscilabs/webmockr documentation built on May 25, 2023, 4:39 a.m.