import fs from 'node:fs'; import vm from 'node:vm'; import test from 'node:test'; import assert from 'node:assert/strict'; import {createHash} from 'node:crypto'; // Golden archives were captured from the already published 905d0f4 engine. // Never regenerate them from the current engine just to make a test green. const fixtures=JSON.parse(fs.readFileSync(new URL('./fixtures/echo-v1.json',import.meta.url),'utf8')); const html=fs.readFileSync(new URL('../development/echo-expedition.html',import.meta.url),'utf8'); const ctx=vm.createContext({}); vm.runInContext(html.match(/