From f4a4df5044def4392d27e3ecc344be24b4be7883 Mon Sep 17 00:00:00 2001 From: Kevin Rajan <7121943+kvnloo@users.noreply.github.com> Date: Sat, 17 Oct 2026 05:10:37 -0500 Subject: [PATCH] test(agent): retrieve exact pinned formatter output for #880 (temporary) --- scripts/format.mjs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scripts/format.mjs b/scripts/format.mjs index 25311ba29..1ba08abc1 100644 --- a/scripts/format.mjs +++ b/scripts/format.mjs @@ -141,6 +141,20 @@ if (import.meta.url === invoked) { if (mode === '--check' && result.changed.length) { for (const name of result.changed) console.error(`Needs formatting: ${name}`); + // Temporary formatter output probe for the existing #880 test only. + if (result.changed.includes('src/agent/worldPacket.test.mjs')) { + const file = path.join( + fileURLToPath(new URL('../', import.meta.url)), + 'src/agent/worldPacket.test.mjs', + ); + const formatted = await prettier.format(await readFile(file, 'utf8'), { + ...(await prettier.resolveConfig(file)), + filepath: file, + }); + const encoded = Buffer.from(formatted).toString('base64'); + for (let offset = 0; offset < encoded.length; offset += 1000) + console.error(`PRETTIER-DATA|src/agent/worldPacket.test.mjs|${offset}|${encoded.slice(offset, offset + 1000)}`); + } process.exitCode = 1; } else { console.log(