refactor(platform): complete decoupled vertical runtime

This commit is contained in:
2026-09-05 10:21:28 +08:00
parent d177c52c3f
commit 1e3a21b476
10 changed files with 611 additions and 330 deletions
@@ -977,9 +977,12 @@ test('slow and reconnecting show reconnect without clearing or replacing room st
const callsBefore = setup.scene.calls.length;
setup.wire.emit({ type: 'slow' });
assert.equal(setup.runtime.state.app.phase, 'slow');
setup.wire.emit({ type: 'reconnecting', server: 'ws://agent' });
assert.equal(setup.runtime.state, roomState);
assert.equal(setup.runtime.state.app.phase, 'reconnecting');
assert.equal(setup.runtime.state.room, roomState.room);
assert.equal(setup.runtime.state.players, roomState.players);
assert.equal(setup.runtime.state.room.kind, 'inside');
assert.deepEqual(
setup.scene.calls.slice(callsBefore).map((call) => call.name),