From 2176b2a57839634f95ad7f4e7372fa493da9fc34 Mon Sep 17 00:00:00 2001 From: Shakker Date: Mon, 11 May 2026 07:06:43 +0100 Subject: [PATCH] test: tighten bundled metadata config assertions --- src/plugins/bundled-plugin-metadata.test.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/plugins/bundled-plugin-metadata.test.ts b/src/plugins/bundled-plugin-metadata.test.ts index 7fe5d3d3786a..1e53f25941f0 100644 --- a/src/plugins/bundled-plugin-metadata.test.ts +++ b/src/plugins/bundled-plugin-metadata.test.ts @@ -315,11 +315,10 @@ describe("bundled plugin metadata", () => { contains: ["runtime-api.js"], }); expect(discord?.manifest.id).toBe("discord"); - expect(collectRepoBundledChannelConfigsForTest("discord")?.discord).toEqual( - expect.objectContaining({ - schema: expect.objectContaining({ type: "object" }), - }), - ); + const discordChannelConfig = collectRepoBundledChannelConfigsForTest("discord")?.discord as + | { schema?: { type?: unknown } } + | undefined; + expect(discordChannelConfig?.schema?.type).toBe("object"); }); it("keeps Slack's doctor contract sidecar on the bundled public surface", () => { @@ -368,11 +367,10 @@ describe("bundled plugin metadata", () => { }); it("loads tlon channel config metadata from the lightweight schema surface", () => { - expect(collectRepoBundledChannelConfigsForTest("tlon")?.tlon).toEqual( - expect.objectContaining({ - schema: expect.objectContaining({ type: "object" }), - }), - ); + const tlonChannelConfig = collectRepoBundledChannelConfigsForTest("tlon")?.tlon as + | { schema?: { type?: unknown } } + | undefined; + expect(tlonChannelConfig?.schema?.type).toBe("object"); }); it("keeps bundled persisted-auth metadata on channel package manifests", () => { @@ -951,7 +949,7 @@ describe("bundled plugin metadata", () => { const channelConfigs = entries[0]?.manifest.channelConfigs as | Record | undefined; - expect(channelConfigs?.alpha).toMatchObject({ + expect(channelConfigs?.alpha).toEqual({ schema: { type: "object", properties: {