diff --git a/src/commands/agents.commands.list.test.ts b/src/commands/agents.commands.list.test.ts index 0b51e7b1aa44..d90f5e820af1 100644 --- a/src/commands/agents.commands.list.test.ts +++ b/src/commands/agents.commands.list.test.ts @@ -80,7 +80,7 @@ describe("agentsListCommand", () => { expect(buildProviderStatusIndexMock).not.toHaveBeenCalled(); const summary = (runtime.json[0] as Array>)[0]; - expect(summary).toMatchObject({ id: "main" }); + expect(summary?.id).toBe("main"); expect(summary).not.toHaveProperty("routes"); expect(summary).not.toHaveProperty("providers"); });