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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
test: the environment slot joins the two snapshots that count it
esengine724d53335c2d
diff --git a/desktop/tests/asset-slots.test.ts b/desktop/tests/asset-slots.test.tsindex 7b1762e9e..984d92e66 100644--- a/desktop/tests/asset-slots.test.ts+++ b/desktop/tests/asset-slots.test.ts@@ -53,7 +53,7 @@ describe('ASSET_SLOTS', () => {it('the handle slots are the ones with no live cache getter', () => {const recorded = Object.entries(ASSET_SLOTS).filter(([, d]) => d.record).map(([s]) => s).sort();- expect(recorded).toEqual(['font', 'material', 'mesh']);+ expect(recorded).toEqual(['environment', 'font', 'material', 'mesh']);});it('every asset field a component declares has a slot to load it from', () => {diff --git a/sdk/tests/__snapshots__/component-fieldmeta-golden.test.ts.snap b/sdk/tests/__snapshots__/component-fieldmeta-golden.test.ts.snapindex d129936b0..c291148ba 100644--- a/sdk/tests/__snapshots__/component-fieldmeta-golden.test.ts.snap+++ b/sdk/tests/__snapshots__/component-fieldmeta-golden.test.ts.snap@@ -165,6 +165,9 @@ exports[`builtin FieldMeta (RC9-1 equivalence gate) > matches the golden snapsho"advanced": true,"tooltip": "Aim direction (Directional / Spot).",},+ "environment": {+ "tooltip": "Baked environment (.esenv) this Ambient light casts.",+ },"innerAngle": {"advanced": true,"max": 180,