chore(extension): connection timeout when extension not installed (#896)

This commit is contained in:
Yury Semikhatsky
2025-08-15 09:09:35 -07:00
committed by GitHub
parent 2fc4e88048
commit ba726fb44a
3 changed files with 102 additions and 61 deletions

View File

@@ -40,15 +40,18 @@ type CDPServer = {
start: () => Promise<BrowserContext>;
};
export type StartClient = (options?: {
clientName?: string,
args?: string[],
config?: Config,
roots?: { name: string, uri: string }[],
rootsResponseDelay?: number,
}) => Promise<{ client: Client, stderr: () => string }>;
type TestFixtures = {
client: Client;
startClient: (options?: {
clientName?: string,
args?: string[],
config?: Config,
roots?: { name: string, uri: string }[],
rootsResponseDelay?: number,
}) => Promise<{ client: Client, stderr: () => string }>;
startClient: StartClient;
wsEndpoint: string;
cdpServer: CDPServer;
server: TestServer;