const assert = require('node:assert/strict'); const { readFileSync } = require('node:fs'); const { join } = require('node:path'); const vm = require('node:vm'); const { test } = require('node:test'); // The overview map of viewer/index.html (the M key), run from the page's own source without WebGL, a browser, a // network or game data. The streaming section runs with it, so the chunk states the map draws are the real ones. const html = readFileSync(join(__dirname, '..', 'viewer', 'index.html'), 'utf8'); const viewerModule = html.match(/