diff --git a/src/room/ReactionAudioRenderer.tsx b/src/room/ReactionAudioRenderer.tsx index bf490178..1e29beb0 100644 --- a/src/room/ReactionAudioRenderer.tsx +++ b/src/room/ReactionAudioRenderer.tsx @@ -48,10 +48,10 @@ export function ReactionsAudioRenderer(): ReactNode { return; } if (SoundMap[reactionName]) { - audioEngineRef.current.playSound(reactionName); + void audioEngineRef.current.playSound(reactionName); } else { // Fallback sounds. - audioEngineRef.current.playSound("generic"); + void audioEngineRef.current.playSound("generic"); } } }, [audioEngineRef, shouldPlay, oldReactions, reactions]); diff --git a/src/useAudioContext.test.tsx b/src/useAudioContext.test.tsx index 30bbb961..47087eb5 100644 --- a/src/useAudioContext.test.tsx +++ b/src/useAudioContext.test.tsx @@ -27,9 +27,11 @@ const TestComponent: FC = () => { } return ( <> - + {/* eslint-disable-next-line @typescript-eslint/no-explicit-any*/} - @@ -59,6 +61,7 @@ class MockAudioContext { vitest.mocked({ connect: (v: unknown) => v, start: () => {}, + addEventListener: (_eventType: string, cb: () => void) => cb(), }), ); public createGain = vitest.fn().mockReturnValue(this.gain);