From 54e16d44b4a231fbfed8b96d46cf78410579dbe5 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 27 Apr 2026 16:04:46 +0200 Subject: [PATCH] Add list:fields script and update type casting in scene document validation tests --- package.json | 3 ++- tests/domain/scene-document-validation.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 08f26ef5..3fb8897c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "test": "vitest run", "test:browser": "playwright test", "test:watch": "vitest", - "test:e2e": "playwright test" + "test:e2e": "playwright test", + "list:fields": "tsc scripts/list-authorable-fields.ts --target ES2022 --module NodeNext --moduleResolution NodeNext --strict --skipLibCheck --esModuleInterop --allowSyntheticDefaultImports --types node --outDir .tmp/list-authorable-fields && node .tmp/list-authorable-fields/list-authorable-fields.js" }, "dependencies": { "@dimforge/rapier3d-compat": "^0.19.3", diff --git a/tests/domain/scene-document-validation.test.ts b/tests/domain/scene-document-validation.test.ts index 1bf3156a..6eb5f517 100644 --- a/tests/domain/scene-document-validation.test.ts +++ b/tests/domain/scene-document-validation.test.ts @@ -576,8 +576,8 @@ describe("validateSceneDocument", () => { navigationMode: "invalidMode" as unknown as "firstPerson", interactionReachMeters: Number.NaN, interactionAngleDegrees: Number.NaN, - allowLookInputTargetSwitch: "yes", - targetButtonCyclesActiveTarget: 1, + allowLookInputTargetSwitch: "yes" as unknown as boolean, + targetButtonCyclesActiveTarget: 1 as unknown as boolean, movementTemplate: { kind: "invalidTemplate", moveSpeed: 0,