Add list:fields script and update type casting in scene document validation tests
This commit is contained in:
@@ -14,7 +14,8 @@
|
|||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:browser": "playwright test",
|
"test:browser": "playwright test",
|
||||||
"test:watch": "vitest",
|
"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": {
|
"dependencies": {
|
||||||
"@dimforge/rapier3d-compat": "^0.19.3",
|
"@dimforge/rapier3d-compat": "^0.19.3",
|
||||||
|
|||||||
@@ -576,8 +576,8 @@ describe("validateSceneDocument", () => {
|
|||||||
navigationMode: "invalidMode" as unknown as "firstPerson",
|
navigationMode: "invalidMode" as unknown as "firstPerson",
|
||||||
interactionReachMeters: Number.NaN,
|
interactionReachMeters: Number.NaN,
|
||||||
interactionAngleDegrees: Number.NaN,
|
interactionAngleDegrees: Number.NaN,
|
||||||
allowLookInputTargetSwitch: "yes",
|
allowLookInputTargetSwitch: "yes" as unknown as boolean,
|
||||||
targetButtonCyclesActiveTarget: 1,
|
targetButtonCyclesActiveTarget: 1 as unknown as boolean,
|
||||||
movementTemplate: {
|
movementTemplate: {
|
||||||
kind: "invalidTemplate",
|
kind: "invalidTemplate",
|
||||||
moveSpeed: 0,
|
moveSpeed: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user