mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
32 lines
952 B
TypeScript
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,
|
|
);
|
|
});
|
|
});
|