Files
copilotkit__copilotkit/scripts/release/lib/config.test.ts
2026-07-15 10:13:19 -07:00

32 lines
952 B
TypeScript

import { describe, expect, it } from "vitest";
import { getScopeConfig } from "./config.js";
import { getPackagesForScope } from "./versions.js";
const CHANNELS_PACKAGES = [
"@copilotkit/channels-ui",
"@copilotkit/channels-core",
"@copilotkit/channels-slack",
"@copilotkit/channels-teams",
"@copilotkit/channels-intelligence",
"@copilotkit/channels-discord",
"@copilotkit/channels-telegram",
"@copilotkit/channels-whatsapp",
"@copilotkit/channels",
];
describe("Channels release scope", () => {
it("publishes the complete Channels family from one shared scope", () => {
expect(getScopeConfig("channels")).toEqual({
packages: CHANNELS_PACKAGES,
versionSource: "@copilotkit/channels",
sharedVersion: true,
});
});
it("resolves Channels packages in configured publish order", () => {
expect(getPackagesForScope("channels").map((pkg) => pkg.name)).toEqual(
CHANNELS_PACKAGES,
);
});
});