From 7591d01bdb8495d71b21ce6ebe07f13d98011fbd Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 11 Apr 2026 05:44:40 +0100 Subject: [PATCH] perf: defer bundled channel metadata lookups --- .../bundled-channel-config-runtime.test.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/config/bundled-channel-config-runtime.test.ts b/src/config/bundled-channel-config-runtime.test.ts index e375746e8cf2..39147c6b7e95 100644 --- a/src/config/bundled-channel-config-runtime.test.ts +++ b/src/config/bundled-channel-config-runtime.test.ts @@ -1,6 +1,24 @@ import { beforeEach, describe, expect, it, vi } from "vitest"; import { importFreshModule } from "../../test/helpers/import-fresh.ts"; +vi.mock("../plugins/bundled-plugin-metadata.js", () => ({ + listBundledPluginMetadata: () => [ + { + manifest: { + channelConfigs: { + msteams: { + schema: { type: "object" }, + runtime: { configWrites: true }, + }, + whatsapp: { + schema: { type: "object" }, + }, + }, + }, + }, + ], +})); + describe("bundled channel config runtime", () => { beforeEach(() => { vi.doUnmock("../channels/plugins/bundled.js");