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.

fix(tests): the failing host answers the discard door in its own type

esengine7bb19cb86e7b
diff --git a/sdk/tests/world-residency.test.ts b/sdk/tests/world-residency.test.ts
index 7aa07f581..29de0cc0a 100644
--- a/sdk/tests/world-residency.test.ts
+++ b/sdk/tests/world-residency.test.ts
@@ -235,7 +235,7 @@ describe('WorldStreamer', () => {
const failing: WorldStreamHost = {
register() {},
prepare: () => Promise.reject(new Error('no')),
- discardPrepared() {},
+ discardPrepared: () => 0,
loadAdditive: () => Promise.resolve({}),
unload: () => Promise.resolve(),
isLoaded: () => false,