Class represents fake PusherFactory.
import { PusherFactoryMock } from "pusher-js-mock";
...
beforeEach(() => { const pusherFactoryMock = new PusherFactoryMock()
window.PusherFactory = pusherFactoryMock
pusher = pusherFactoryMock.pusherClient() })
Initialize PusherFactoryMock with pusherKey and sets a pusherClientInstance
Pusher app key
Getter for pusherClientInstance
PusherMock object that reprents pusherClient
Generated using TypeDoc
Class represents fake PusherFactory.
import { PusherFactoryMock } from "pusher-js-mock";
...
beforeEach(() => { const pusherFactoryMock = new PusherFactoryMock()
window.PusherFactory = pusherFactoryMock
pusher = pusherFactoryMock.pusherClient() })