request-mocking-protocol
Version:
A protocol for declarative mocking of HTTP requests
8 lines • 387 B
TypeScript
/**
* Playwright interceptor.
* Used in Playwright tests to mock page requests with the same syntax as for server requests.
*/
import { Page, BrowserContext } from '@playwright/test';
import { MockClient } from '../client';
export declare function setupPlaywrightInterceptor(page: Page | BrowserContext, mockClient: MockClient): Promise<void>;
//# sourceMappingURL=playwright.d.ts.map