E.g., if you're testing with different base urls, e.g., https://foo.com/api/v1/stuff?q=bird vs. https://bar.com/api/v1/stuff?q=bird - you can set match_requests_on = c("path", "query") to ignore the changing hostname so that when you set different hostnames in different contexts (local machine vs. CI vs. other context) the tests work all the same
E.g., if you're testing with different base urls, e.g.,
https://foo.com/api/v1/stuff?q=birdvs.https://bar.com/api/v1/stuff?q=bird- you can setmatch_requests_on = c("path", "query")to ignore the changing hostname so that when you set different hostnames in different contexts (local machine vs. CI vs. other context) the tests work all the same