UNPKG

cypress-signalr-mock

Version:

An easy way to mock a SignalR server which can send and receive messages during Cypress tests.

7 lines (6 loc) 413 B
import IServerInvoke from "./types/IServerInvoke"; export declare function setupCypressCommands(): void; export declare function hubPublish(hubName: string, messageType: string, payload: any): void; export declare function hubVerify(hubName: string, messageType: string, callback?: (invokes: IServerInvoke[]) => void): void; export declare function hubPrintData(): void; export declare function hubClear(): void;