[claude] Add test harness for scene validation (#145) #163

Merged
Timmy merged 1 commits from claude/the-nexus:claude/issue-145 into main 2026-03-24 04:04:37 +00:00

1 Commits

Author SHA1 Message Date
Alexander Whitestone
d0e7346fcd test: add test harness for scene validation (#145)
Some checks failed
CI / validate (pull_request) Has been cancelled
Adds test.js — a zero-dependency Node.js test harness that validates:
- JS syntax (node --check) for app.js and ws-client.js
- File size budget (< 500 KB per JS file)
- JSON validity for manifest.json, portals.json, vision.json
- HTML structure of index.html (DOCTYPE, importmap, required elements)
- Static analysis of app.js for required scene components
  (scene, camera, renderer, animate loop, star field, ws-client, etc.)

Run with: node test.js

Fixes #145

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:01:27 -04:00