Functions
Const actAndFlushPromises
- actAndFlushPromises(): Promise<undefined>
-
Returns Promise<undefined>
Const makeAuthPusherConfig
- makeAuthPusherConfig(id?: string, info?: any): { authorizer: any }
-
Parameters
-
Default value id: string = "my-id"
-
Default value info: any = {}
Returns { authorizer: any }
-
authorizer: function
- authorizer(): { authorize: any }
-
Returns { authorize: any }
-
authorize: function
- authorize(socketId: string, callback: (errored: boolean, info: any) => void): void
-
Parameters
-
socketId: string
-
callback: (errored: boolean, info: any) => void
-
- (errored: boolean, info: any): void
-
Parameters
-
errored: boolean
-
info: any
Returns void
Returns void
renderHookWithProvider
- renderHookWithProvider<T>(hook: () => T, clientConfig?: Record<string, any>): Promise<RenderHookResult<{}, T>>
-
Type parameters
Parameters
-
hook: () => T
-
Default value clientConfig: Record<string, any> = {}
Returns Promise<RenderHookResult<{}, T>>
Flushes async promises in mocks