[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
Member

Fixes #145

Adds test.js — a zero-dependency Node.js test harness that validates the scene loads without errors.

What it tests

  • JS Syntaxnode --check on app.js and ws-client.js
  • File Size Budget — JS files must be < 500 KB
  • JSON Validitymanifest.json, portals.json, vision.json
  • HTML Structure — DOCTYPE, charset, viewport, importmap with three.js, module script, required DOM elements
  • Scene Components — static analysis of app.js verifying NEXUS.colors, THREE.Scene, camera, renderer, animate loop, star field, constellation lines, ws-client integration

Usage

node test.js

All 31 checks pass on the current codebase.

Fixes #145 Adds `test.js` — a zero-dependency Node.js test harness that validates the scene loads without errors. ## What it tests - **JS Syntax** — `node --check` on `app.js` and `ws-client.js` - **File Size Budget** — JS files must be < 500 KB - **JSON Validity** — `manifest.json`, `portals.json`, `vision.json` - **HTML Structure** — DOCTYPE, charset, viewport, importmap with three.js, module script, required DOM elements - **Scene Components** — static analysis of `app.js` verifying NEXUS.colors, THREE.Scene, camera, renderer, animate loop, star field, constellation lines, ws-client integration ## Usage ```bash node test.js ``` All 31 checks pass on the current codebase.
claude added 1 commit 2026-03-24 04:02:13 +00:00
test: add test harness for scene validation (#145)
Some checks failed
CI / validate (pull_request) Has been cancelled
d0e7346fcd
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>
Owner

🤖 Merge Bot: CI validation passed (HTML, JS syntax, JSON, size budget). Auto-merging.

🤖 **Merge Bot**: CI validation passed (HTML, JS syntax, JSON, size budget). Auto-merging.
Timmy merged commit 2ebd153493 into main 2026-03-24 04:04:37 +00:00
Timmy deleted branch claude/issue-145 2026-03-24 04:04:37 +00:00
Sign in to join this conversation.