mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
ci(test): align node lane names with boundary split
This commit is contained in:
23
test/scripts/ci-node-test-plan.test.ts
Normal file
23
test/scripts/ci-node-test-plan.test.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createNodeTestShards } from "../../scripts/lib/ci-node-test-plan.mjs";
|
||||
|
||||
describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
it("names the node shard checks as core test lanes", () => {
|
||||
const shards = createNodeTestShards();
|
||||
|
||||
expect(shards).not.toHaveLength(0);
|
||||
expect(shards.map((shard) => shard.checkName)).toEqual(
|
||||
shards.map((shard) => `checks-node-core-test-${shard.shardName}`),
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps extension, bundled, contracts, and channels configs out of the core node lane", () => {
|
||||
const configs = createNodeTestShards().flatMap((shard) => shard.configs);
|
||||
|
||||
expect(configs).not.toContain("test/vitest/vitest.channels.config.ts");
|
||||
expect(configs).not.toContain("test/vitest/vitest.contracts.config.ts");
|
||||
expect(configs).not.toContain("test/vitest/vitest.bundled.config.ts");
|
||||
expect(configs).not.toContain("test/vitest/vitest.full-extensions.config.ts");
|
||||
expect(configs).not.toContain("test/vitest/vitest.extension-telegram.config.ts");
|
||||
});
|
||||
});
|
||||
@@ -386,6 +386,9 @@ describe("scripts/test-extension.mjs", () => {
|
||||
});
|
||||
|
||||
expect(shards).toHaveLength(DEFAULT_EXTENSION_TEST_SHARD_COUNT);
|
||||
expect(shards.map((shard) => shard.checkName)).toEqual(
|
||||
shards.map((shard, index) => `checks-node-extensions-shard-${index + 1}`),
|
||||
);
|
||||
|
||||
const assigned = shards.flatMap((shard) => shard.extensionIds);
|
||||
const uniqueAssigned = [...new Set(assigned)];
|
||||
|
||||
Reference in New Issue
Block a user