Add list:fields script and update type casting in scene document validation tests

This commit is contained in:
2026-04-27 16:04:46 +02:00
parent fe70e00165
commit 54e16d44b4
2 changed files with 4 additions and 3 deletions

View File

@@ -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",

View File

@@ -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,