@@ -137,7 +137,7 @@ describe('renderer/context/App.tsx', () => {
137137 it ( 'should call markNotificationsAsRead' , async ( ) => {
138138 const getContext = renderWithContext ( ) ;
139139
140- act ( ( ) => {
140+ await act ( async ( ) => {
141141 getContext ( ) . markNotificationsAsRead ( [ mockGitifyNotification ] ) ;
142142 } ) ;
143143
@@ -152,7 +152,7 @@ describe('renderer/context/App.tsx', () => {
152152 it ( 'should call markNotificationsAsDone' , async ( ) => {
153153 const getContext = renderWithContext ( ) ;
154154
155- act ( ( ) => {
155+ await act ( async ( ) => {
156156 getContext ( ) . markNotificationsAsDone ( [ mockGitifyNotification ] ) ;
157157 } ) ;
158158
@@ -167,7 +167,7 @@ describe('renderer/context/App.tsx', () => {
167167 it ( 'should call unsubscribeNotification' , async ( ) => {
168168 const getContext = renderWithContext ( ) ;
169169
170- act ( ( ) => {
170+ await act ( async ( ) => {
171171 getContext ( ) . unsubscribeNotification ( mockGitifyNotification ) ;
172172 } ) ;
173173
@@ -188,7 +188,7 @@ describe('renderer/context/App.tsx', () => {
188188 it ( 'should call updateSetting' , async ( ) => {
189189 const getContext = renderWithContext ( ) ;
190190
191- act ( ( ) => {
191+ await act ( async ( ) => {
192192 getContext ( ) . updateSetting ( 'participating' , true ) ;
193193 } ) ;
194194
@@ -235,7 +235,7 @@ describe('renderer/context/App.tsx', () => {
235235
236236 const getContext = renderWithContext ( ) ;
237237
238- act ( ( ) => {
238+ await act ( async ( ) => {
239239 getContext ( ) . loginWithDeviceFlowStart ( ) ;
240240 } ) ;
241241
@@ -249,7 +249,7 @@ describe('renderer/context/App.tsx', () => {
249249
250250 const getContext = renderWithContext ( ) ;
251251
252- act ( ( ) => {
252+ await act ( async ( ) => {
253253 getContext ( ) . loginWithDeviceFlowPoll (
254254 'session' as unknown as DeviceFlowSession ,
255255 ) ;
@@ -284,7 +284,7 @@ describe('renderer/context/App.tsx', () => {
284284
285285 const getContext = renderWithContext ( ) ;
286286
287- act ( ( ) => {
287+ await act ( async ( ) => {
288288 getContext ( ) . loginWithOAuthApp ( {
289289 clientId : 'id' as ClientID ,
290290 clientSecret : 'secret' as ClientSecret ,
@@ -298,7 +298,7 @@ describe('renderer/context/App.tsx', () => {
298298 it ( 'logoutFromAccount calls removeAccountNotifications, removeAccount' , async ( ) => {
299299 const getContext = renderWithContext ( ) ;
300300
301- act ( ( ) => {
301+ await act ( async ( ) => {
302302 getContext ( ) . logoutFromAccount ( mockGitHubCloudAccount ) ;
303303 } ) ;
304304
0 commit comments