/// declare namespace jest { interface Matchers { /** * @description * Assert whether the test server has called with the given body * @example * expect(spy).toHaveBeenCalledWithBody({data: 'Hello World'}); */ toHaveBeenCalledWithBody(body: any): R; /** * @description * Assert whether the test server has called with the given body * @example * expect(spy).toHaveBeenCalledWithUrl('https://example.com/api/users'); * expect(spy).toHaveBeenCalledWithUrl('/api/users', {exact: false}); */ toHaveBeenCalledWithUrl(url: string, options: { exact: boolean }): R; } }