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 refusal criterion states the options the export requires

esengine21e5ae76a21f
diff --git a/pipeline/tests/partition-world.test.ts b/pipeline/tests/partition-world.test.ts
index 58d68946d..ff68a52a4 100644
--- a/pipeline/tests/partition-world.test.ts
+++ b/pipeline/tests/partition-world.test.ts
@@ -212,6 +212,9 @@ describe('targets that cannot ship a cut world', () => {
outDir: path.join(project, 'out'),
platform: 'playable',
gameHostEntry: path.join(project, 'host.ts'),
+ // Never reached: the refusal happens before anything is staged.
+ sdkDistDir: path.join(project, 'sdk'),
+ wasmDir: path.join(project, 'wasm'),
})).rejects.toThrow(/cannot ship one/);
} finally {
await rm(project, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 });