From b2a8091440f8b9b4a3dcc80f3850a03f937db941 Mon Sep 17 00:00:00 2001 From: van3hardy Date: Tue, 11 Aug 2026 22:12:35 -0400 Subject: [PATCH] test(opencode): guard plugin.tool existence before shape assertion --- tests/scripts/build-opencode.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/build-opencode.test.js b/tests/scripts/build-opencode.test.js index 4a3aac797..469165883 100644 --- a/tests/scripts/build-opencode.test.js +++ b/tests/scripts/build-opencode.test.js @@ -90,6 +90,7 @@ function main() { for (const hook of expectedHooks) { assert.strictEqual(typeof plugin[hook], "function", "missing hook: " + hook) } + assert.ok(plugin.tool && typeof plugin.tool === "object", "plugin record must expose a tool object") assert.deepStrictEqual( Object.keys(plugin.tool).sort(), ["changed-files", "dependency-analyzer"],