diff --git a/src/app/features/room/message/Reactions.test.tsx b/src/app/features/room/message/Reactions.test.tsx index 3cef02e69..7d6b7bd7f 100644 --- a/src/app/features/room/message/Reactions.test.tsx +++ b/src/app/features/room/message/Reactions.test.tsx @@ -1,5 +1,5 @@ -import type { TouchEventHandler } from 'react'; -import { cleanup, fireEvent, render } from '@testing-library/react'; +import type { ReactNode, TouchEventHandler } from 'react'; +import { act, cleanup, fireEvent, render } from '@testing-library/react'; import { afterEach, describe, expect, it, vi } from 'vitest'; import type { MatrixEvent, Relations, Room } from '$types/matrix-sdk'; @@ -22,7 +22,18 @@ vi.mock('$components/emoji-board', () => ({ })); vi.mock('$features/room/reaction-viewer', () => ({ - ReactionViewer: () => null, + ReactionViewer: ({ initialKey }: { initialKey?: string }) => ( +