Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

test: the animator particle and scene prefab tests typecheck

yhh28a42abd52f5
diff --git a/sdk/tests/animator-particles.test.ts b/sdk/tests/animator-particles.test.ts
index 124bd056e..02cb930e9 100644
--- a/sdk/tests/animator-particles.test.ts
+++ b/sdk/tests/animator-particles.test.ts
@@ -9,7 +9,7 @@ import { createTimelineMotionDriver } from '../src/timeline/timelineMotion';
import { TimelineAPI } from '../src/timeline/TimelineControl';
import { TrackType, WrapMode, type TimelineAsset, type ParticleTrack } from '../src/timeline/TimelineTypes';
-const clip = (events: ParticleTrack['events'], wrapMode = WrapMode.Once): TimelineAsset => ({
+const clip = (events: ParticleTrack["events"], wrapMode: WrapMode = WrapMode.Once): TimelineAsset => ({
version: '1.3', type: 'timeline', duration: 1, wrapMode,
tracks: [{ type: TrackType.Particle, name: 'burst', childPath: 'Sparks', events }],
});
diff --git a/sdk/tests/scene-prefab-lifetime.test.ts b/sdk/tests/scene-prefab-lifetime.test.ts
index a109fcfc5..d4f240c88 100644
--- a/sdk/tests/scene-prefab-lifetime.test.ts
+++ b/sdk/tests/scene-prefab-lifetime.test.ts
@@ -46,7 +46,7 @@ function harness(missingChild = false) {
const loader = new PrefabAssetLoader();
const unloaded = vi.spyOn(loader, 'unload');
assets.register(loader);
- const world = new World(module);
+ const world = new World();
const scene = {
version: 4, name: 'Forest',
entities: [1, 2].map(id => ({ id, parent: null, prefab: 'tree.esprefab', overrides: [], added: [], removed: [] })),