perf: defer bundled channel metadata lookups

This commit is contained in:
Peter Steinberger
2026-04-11 05:44:40 +01:00
parent 2d6519dcb9
commit 7591d01bdb
@@ -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");