File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/src/__tests__/offline-support Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ export const Generic = () => {
254254 const reactionsRows = await BetterSqlite . selectFromTable ( 'reactions' ) ;
255255 const readsRows = await BetterSqlite . selectFromTable ( 'reads' ) ;
256256
257+ console . log ( 'ON UI' , channelIdsOnUI ) ;
257258 expect ( channelIdsOnUI . length ) . toBe ( channels . length ) ;
258259 expect ( channelsRows . length ) . toBe ( channels . length ) ;
259260 expect ( messagesRows . length ) . toBe ( allMessages . length ) ;
@@ -381,9 +382,8 @@ export const Generic = () => {
381382 channels . push ( newChannel ) ;
382383 useMockedApis ( chatClient , [ getOrCreateChannelApi ( newChannel ) ] ) ;
383384
385+ await act ( ( ) => dispatchNotificationMessageNewEvent ( chatClient , newChannel . channel ) ) ;
384386 await waitFor ( ( ) => {
385- act ( ( ) => dispatchNotificationMessageNewEvent ( chatClient , newChannel . channel ) ) ;
386-
387387 const channelIdsOnUI = screen
388388 . queryAllByLabelText ( 'list-item' )
389389 . map ( ( node ) => node . _fiber . pendingProps . testID ) ;
You can’t perform that action at this time.
0 commit comments