From 75c50e389939adc08f11a90057b47949eb542f7f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 02:41:16 +0200 Subject: [PATCH] Update runtime-host.test.ts with new control effects and entities --- tests/unit/runtime-host.test.ts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/tests/unit/runtime-host.test.ts b/tests/unit/runtime-host.test.ts index c97c0ddc..af0e1c12 100644 --- a/tests/unit/runtime-host.test.ts +++ b/tests/unit/runtime-host.test.ts @@ -2,29 +2,52 @@ import { waitFor } from "@testing-library/react"; import { afterEach, describe, expect, it, vi } from "vitest"; import { + createActiveSceneControlTargetRef, createActorControlTargetRef, createLightControlTargetRef, + createModelInstanceControlTargetRef, + createPlayModelAnimationControlEffect, + createPlaySoundControlEffect, createSetActorPresenceControlEffect, type ControlEffect, + createSetAmbientLightColorControlEffect, + createSetAmbientLightIntensityControlEffect, createSetLightEnabledControlEffect, - createSetLightIntensityControlEffect + createSetLightColorControlEffect, + createSetLightIntensityControlEffect, + createSetModelInstanceVisibleControlEffect, + createSetSoundVolumeControlEffect, + createSetSunLightColorControlEffect, + createSetSunLightIntensityControlEffect, + createSoundEmitterControlTargetRef, + createStopModelAnimationControlEffect, + createStopSoundControlEffect } from "../../src/controls/control-surface"; import { createEmptySceneDocument } from "../../src/document/scene-document"; import { createNpcEntity, - createPointLightEntity + createPointLightEntity, + createSoundEmitterEntity, + createTriggerVolumeEntity } from "../../src/entities/entity-instances"; import { createControlInteractionLink, type InteractionLink } from "../../src/interactions/interaction-links"; import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler"; +import { + createProjectAssetStorageKey, + type AudioAssetRecord, + type ModelAssetRecord +} from "../../src/assets/project-assets"; +import { createModelInstance } from "../../src/assets/model-instances"; import { RapierCollisionWorld } from "../../src/runtime-three/rapier-collision-world"; import { RuntimeHost, type RuntimeSceneLoadState } from "../../src/runtime-three/runtime-host"; import { buildRuntimeSceneFromDocument } from "../../src/runtime-three/runtime-scene-build"; +import type { AnimationMixer } from "three"; function createDeferred() { let resolve: ((value: T) => void) | null = null;