move prefetch sounds to fix hot reload

This commit is contained in:
Half-Shot
2024-12-09 09:49:24 +00:00
parent ee7ef941f5
commit 7c3cba74ba
7 changed files with 81 additions and 66 deletions
+3 -1
View File
@@ -29,8 +29,9 @@ import {
playReactionsSound,
soundEffectVolumeSetting,
} from "../settings/settings";
import { prefetchSounds, useAudioContext } from "../useAudioContext";
import { useAudioContext } from "../useAudioContext";
import { GenericReaction, ReactionSet } from "../reactions";
import { prefetchSounds } from "../soundUtils";
const memberUserIdAlice = "@alice:example.org";
const memberUserIdBob = "@bob:example.org";
@@ -60,6 +61,7 @@ function TestComponent({
}
vitest.mock("../useAudioContext");
vitest.mock("../soundUtils");
afterEach(() => {
vitest.resetAllMocks();