mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-24 07:31:44 +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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user