Skip to contents

Clear all stubs in the stub registry

Usage

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: 
#>     auth: 
#>   to_return: 
stub_registry()
#> <webmockr stub registry> 
#>  Registered Stubs
#>   GET: https://httpbin.org/get
stub_registry_clear()
stub_registry()
#> <webmockr stub registry> 
#>  Registered Stubs