From af4c10130d997c1c2eb848e8a6b690b1841a7c14 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 11 Apr 2026 11:20:15 +0200 Subject: [PATCH] Add test for round-tripping authored third-person Player Start navigation --- tests/serialization/scene-document-json.test.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/serialization/scene-document-json.test.ts b/tests/serialization/scene-document-json.test.ts index 66e23130..df3009f5 100644 --- a/tests/serialization/scene-document-json.test.ts +++ b/tests/serialization/scene-document-json.test.ts @@ -652,6 +652,23 @@ describe("scene document JSON", () => { ); }); + it("round-trips authored third-person Player Start navigation", () => { + const playerStart = createPlayerStartEntity({ + id: "entity-player-start-third-person", + navigationMode: "thirdPerson" + }); + const document = { + ...createEmptySceneDocument({ name: "Third Person Player Start Scene" }), + entities: { + [playerStart.id]: playerStart + } + }; + + expect(parseSceneDocumentJson(serializeSceneDocument(document))).toEqual( + document + ); + }); + it("round-trips the initial typed entity registry without mixing entities into model instances", () => { const playerStart = createPlayerStartEntity({ id: "entity-player-start-main"