// Exercise the repaired REA public CLI against an isolated, owned Electron fixture. // This proves capture capability, never visual parity with the WorkBuddy application. import assert from 'node:assert/strict' import { createRequire } from 'node:module' import { spawn } from 'node:child_process' import { createServer } from 'node:net' import fs from 'node:fs/promises' import path from 'node:path' import { setTimeout as delay } from 'node:timers/promises' const require = createRequire(import.meta.url) const root=path.resolve('.tmp/rea-visual-probe-self-test') await fs.mkdir(root,{recursive:true}) const portServer=createServer() await new Promise(resolve=>portServer.listen(0,'127.0.0.1',resolve)) const port=portServer.address().port await new Promise(resolve=>portServer.close(resolve)) const fixture=path.join(root,'index.html'),ready=path.join(root,'ready.json') await fs.rm(ready,{force:true}) await fs.writeFile(fixture,`
字体字形:中文测试
English glyph parity sample.
const value = 42;