Skip to content

Commit 47caa32

Browse files
test: update logout test to use async act
1 parent d10acc3 commit 47caa32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/auth-provider.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ describe('Auth0Provider', () => {
423423
await waitFor(() => {
424424
expect(result.current.logout).toBeInstanceOf(Function);
425425
});
426-
act(() => {
426+
await act(() => {
427427
result.current.logout();
428428
});
429429
expect(clientMock.logout).toHaveBeenCalled();

0 commit comments

Comments
 (0)