From f540554dc4707744615cd9f230ce43eb1a55b09e Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Tue, 31 Mar 2026 17:30:35 -0400 Subject: [PATCH] fix(test): act Signed-off-by: Adam Setch --- src/renderer/context/App.test.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/renderer/context/App.test.tsx b/src/renderer/context/App.test.tsx index 5420ecaab..3b2008456 100644 --- a/src/renderer/context/App.test.tsx +++ b/src/renderer/context/App.test.tsx @@ -137,7 +137,7 @@ describe('renderer/context/App.tsx', () => { it('should call markNotificationsAsRead', async () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().markNotificationsAsRead([mockGitifyNotification]); }); @@ -152,7 +152,7 @@ describe('renderer/context/App.tsx', () => { it('should call markNotificationsAsDone', async () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().markNotificationsAsDone([mockGitifyNotification]); }); @@ -167,7 +167,7 @@ describe('renderer/context/App.tsx', () => { it('should call unsubscribeNotification', async () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().unsubscribeNotification(mockGitifyNotification); }); @@ -188,7 +188,7 @@ describe('renderer/context/App.tsx', () => { it('should call updateSetting', async () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().updateSetting('participating', true); }); @@ -235,7 +235,7 @@ describe('renderer/context/App.tsx', () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().loginWithDeviceFlowStart(); }); @@ -249,7 +249,7 @@ describe('renderer/context/App.tsx', () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().loginWithDeviceFlowPoll( 'session' as unknown as DeviceFlowSession, ); @@ -284,7 +284,7 @@ describe('renderer/context/App.tsx', () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().loginWithOAuthApp({ clientId: 'id' as ClientID, clientSecret: 'secret' as ClientSecret, @@ -298,7 +298,7 @@ describe('renderer/context/App.tsx', () => { it('logoutFromAccount calls removeAccountNotifications, removeAccount', async () => { const getContext = renderWithContext(); - act(() => { + await act(async () => { getContext().logoutFromAccount(mockGitHubCloudAccount); });