Clear all stubs in the stub registry

stub_registry_clear()

Value

an empty list invisibly

See also

Examples

(x <- stub_request("get", "https://httpbin.org/get"))
#> <webmockr stub> #> method: get #> uri: https://httpbin.org/get #> with: #> query: #> body: #> request_headers: #> to_return:
#> <webmockr stub registry> #> Registered Stubs #> GET: https://httpbin.org/get
stub_registry_clear() stub_registry()
#> <webmockr stub registry> #> Registered Stubs