test(recovery-tunnel-out): mock bot.dig in jump-in-place test

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 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-26 12:44:12 +03:00
co-authored by pepa_bot self-improvement loop
parent 6560c0765c
commit 6ba6bcdbb7
@@ -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);