@DJJones — surfaced during a fresh setup-prompt run yesterday on the PAA mini-course. Same shape as your earlier 02d6a2f patch but in a different script.
Symptom: npm test fails on Node 22+ in a fresh template clone — the test runner reports test/unit is not a valid module path.
Cause: scripts/run-tests.js still passes test/unit and test/integration as directory paths to node --test. Node 22 deprecated the directory form and now resolves the path as a module specifier, which fails.
Fix: same one-line glob shape you used in your earlier test:conformance patch. Change
node --test test/unit
node --test test/integration
to
node --test test/unit/*.test.js
node --test test/integration/*.test.js
Verified: running with the glob form passes 40/40 unit + 1/1 integration on Node 22.20.
Context: the L2 mini-course setup prompt was just updated to call npm run check:conformance instead of npm test (sidesteps this for fresh students), but worth landing the fix for cleanliness so npm test works out of the box on any supported Node version.
PR or direct push to Personal-AI-Architecture/ts-architecture-template, your call.