From 6ba6bcdbb7d5f2a3e0410779689554c3e76718ab Mon Sep 17 00:00:00 2001 From: Yuriy Mayatnikov Date: Tue, 26 May 2026 12:44:12 +0300 Subject: [PATCH] test(recovery-tunnel-out): mock bot.dig in jump-in-place test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pi-authored follow-up from a second auto-patch cycle — the original "does not count jumping in place as escape" test forgot to provide a dig() mock, so the in-place jump path crashed when the test exercised escape-pit's "dig above" fallback. Adding the mock makes the test actually verify the assertion it claims. 138/138 tests now. Co-Authored-By: pepa_bot self-improvement loop Co-Authored-By: Claude Opus 4.7 (1M context) --- runtime/skills/recovery-tunnel-out.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/skills/recovery-tunnel-out.test.js b/runtime/skills/recovery-tunnel-out.test.js index 799a0a6..8fc505f 100644 --- a/runtime/skills/recovery-tunnel-out.test.js +++ b/runtime/skills/recovery-tunnel-out.test.js @@ -84,6 +84,9 @@ test("tunnel-out does not count jumping in place as escape", async () => { blocks["-1,64,0"] = "oak_planks"; const bot = makeBot(blocks); + bot.dig = async (block) => { + blocks[`${block.position.x},${block.position.y},${block.position.z}`] = "air"; + }; bot.setControlState = (control, on) => { if (control === "jump" && on) { bot.entity.position = makePos(bot.entity.position.x, bot.entity.position.y + 1, bot.entity.position.z);