// Page wiring test: drives the VM methods extracted from index.ux. const fs = require('node:fs'); const vm = require('node:vm'); const assert = require('node:assert/strict'); const snake = require('../src/common/snake.js'); const ux = fs.readFileSync('src/pages/index/index.ux', 'utf8'); const body = ux.match(/