@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
10 lines (9 loc) • 482 B
TypeScript
import { BrowserContext, Page } from "@playwright/test";
/**
* Sets up request interception to replace the default localhost port in RPC URLs
* with the dynamic port provided by localNodeManager
*
* @param pageOrContext - Playwright Page or BrowserContext to apply the route to
* @param localNodePort - The actual port number from localNodeManager
*/
export declare function setupRpcPortInterceptor(pageOrContext: Page | BrowserContext, localNodePort: number): Promise<void>;