mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-07 15:21:06 +00:00
perf: split hooks, tui, and extension lanes
This commit is contained in:
@@ -212,6 +212,17 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes tui targets to the tui config", () => {
|
||||
expect(buildVitestRunPlans(["src/tui/tui.test.ts"])).toEqual([
|
||||
{
|
||||
config: "vitest.tui.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["src/tui/tui.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes media-understanding targets to the media-understanding config", () => {
|
||||
expect(buildVitestRunPlans(["src/media-understanding/runtime.test.ts"])).toEqual([
|
||||
{
|
||||
@@ -267,6 +278,17 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes hooks targets to the hooks config", () => {
|
||||
expect(buildVitestRunPlans(["src/hooks/install.test.ts"])).toEqual([
|
||||
{
|
||||
config: "vitest.hooks.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["src/hooks/install.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes channel targets to the channels config", () => {
|
||||
expect(buildVitestRunPlans(["src/channels/ids.test.ts"])).toEqual([
|
||||
{
|
||||
@@ -364,6 +386,17 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes msteams extension tests to the msteams config", () => {
|
||||
expect(buildVitestRunPlans(["extensions/msteams/src/config.test.ts"])).toEqual([
|
||||
{
|
||||
config: "vitest.extension-msteams.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["extensions/msteams/src/config.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes telegram extension tests to the telegram config", () => {
|
||||
expect(buildVitestRunPlans(["extensions/telegram/src/fetch.test.ts"])).toEqual([
|
||||
{
|
||||
@@ -397,6 +430,17 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes feishu extension tests to the feishu config", () => {
|
||||
expect(buildVitestRunPlans(["extensions/feishu/src/channel.test.ts"])).toEqual([
|
||||
{
|
||||
config: "vitest.extension-feishu.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["extensions/feishu/src/channel.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes acpx extension tests to the acpx config", () => {
|
||||
expect(buildVitestRunPlans(["extensions/acpx/src/runtime.test.ts"])).toEqual([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user