Mock AnimationMixer with stopAllAction in runtime-host.test.ts

This commit is contained in:
2026-04-14 02:43:29 +02:00
parent c639fa5dd8
commit 36b6e19c4d

View File

@@ -368,7 +368,9 @@ describe("RuntimeHost", () => {
.mockImplementation(() => undefined);
hostInternals.animationMixers.set(
modelInstance.id,
{} as unknown as AnimationMixer
{
stopAllAction: vi.fn()
} as unknown as AnimationMixer
);
const playAnimationSpy = vi
.spyOn(hostInternals, "applyPlayAnimationAction")