From d03772b1e5e4af55310eaede63b96eaad4dfde0b Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 06:39:38 +0100 Subject: [PATCH] test: tighten plugin file install hook payload assertion --- src/plugins/install.path.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/install.path.test.ts b/src/plugins/install.path.test.ts index 0399ab887e6..68cd3cdbf80 100644 --- a/src/plugins/install.path.test.ts +++ b/src/plugins/install.path.test.ts @@ -187,7 +187,7 @@ describe("installPluginFromPath", () => { expect(result.ok).toBe(true); expect(handler).toHaveBeenCalledTimes(1); - expect(handler.mock.calls[0]?.[0]).toMatchObject({ + expect(handler.mock.calls[0]?.[0]).toEqual({ targetName: "payload", targetType: "plugin", origin: "plugin-file", @@ -200,6 +200,11 @@ describe("installPluginFromPath", () => { }, builtinScan: { status: "ok", + scannedFiles: 1, + critical: 0, + warn: 0, + info: 0, + findings: [], }, plugin: { contentType: "file",