mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:20:43 +00:00
test: update ci shard and reply mocks
This commit is contained in:
@@ -76,6 +76,7 @@ vi.mock("./body.js", () => ({
|
||||
vi.mock("./groups.js", () => ({
|
||||
buildGroupIntro: vi.fn().mockReturnValue(""),
|
||||
buildGroupChatContext: vi.fn().mockReturnValue(""),
|
||||
buildDirectChatContext: vi.fn().mockReturnValue(""),
|
||||
}));
|
||||
|
||||
vi.mock("./inbound-meta.js", () => ({
|
||||
|
||||
@@ -96,6 +96,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
.map((shard) => ({
|
||||
configs: shard.configs,
|
||||
requiresDist: shard.requiresDist,
|
||||
runner: shard.runner,
|
||||
shardName: shard.shardName,
|
||||
}));
|
||||
|
||||
@@ -110,6 +111,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
"test/vitest/vitest.runtime-config.config.ts",
|
||||
],
|
||||
requiresDist: false,
|
||||
runner: "blacksmith-4vcpu-ubuntu-2404",
|
||||
shardName: "core-runtime-infra",
|
||||
},
|
||||
{
|
||||
@@ -121,6 +123,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
"test/vitest/vitest.wizard.config.ts",
|
||||
],
|
||||
requiresDist: false,
|
||||
runner: undefined,
|
||||
shardName: "core-runtime-media-ui",
|
||||
},
|
||||
{
|
||||
@@ -132,6 +135,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
"test/vitest/vitest.utils.config.ts",
|
||||
],
|
||||
requiresDist: false,
|
||||
runner: undefined,
|
||||
shardName: "core-runtime-shared",
|
||||
},
|
||||
]);
|
||||
@@ -149,6 +153,7 @@ describe("scripts/lib/ci-node-test-plan.mjs", () => {
|
||||
checkName: "checks-node-agentic-control-plane",
|
||||
shardName: "agentic-control-plane",
|
||||
configs: ["test/vitest/vitest.gateway-server.config.ts"],
|
||||
runner: "blacksmith-4vcpu-ubuntu-2404",
|
||||
requiresDist: false,
|
||||
});
|
||||
expect(commandsShard).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user