Provides expectations and matching around a vitest mock that will be familiar to users of Angular's HttpTestingController.
HttpTestingController
Warning: Do not clear the history of the passed-in mock. If you do, this controller will misbehave.
Expect that no requests were made that match the given condition.
If a matching call was made, fail with an error message including the given request description, if any.
Optional
Expect that a single call was made that matches the given condition, and return its TestCall.
TestCall
If no such call was made, or more than one such call was made, fail with an error message including the given request description, if any.
Search for calls that match the given condition, without any expectations.
Verify that no unmatched calls are outstanding.
If any calls are outstanding, fail with an error message indicating which calls were not handled.
Provides expectations and matching around a vitest mock that will be familiar to users of Angular's
HttpTestingController.