mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 04:31:10 +00:00
perf: route bundled and extension helper tests
This commit is contained in:
@@ -78,6 +78,17 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes bundled-plugin-dependent unit targets to the bundled config", () => {
|
||||
expect(buildVitestRunPlans(["src/plugins/loader.test.ts"])).toEqual([
|
||||
{
|
||||
config: "vitest.bundled.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["src/plugins/loader.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes command targets to the commands config", () => {
|
||||
expect(buildVitestRunPlans(["src/commands/status.summary.test.ts"])).toEqual([
|
||||
{
|
||||
@@ -133,6 +144,19 @@ describe("test-projects args", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("widens extension helper targets to sibling extension tests", () => {
|
||||
expect(
|
||||
buildVitestRunPlans(["extensions/memory-core/src/memory/test-runtime-mocks.ts"]),
|
||||
).toEqual([
|
||||
{
|
||||
config: "vitest.extensions.config.ts",
|
||||
forwardedArgs: [],
|
||||
includePatterns: ["extensions/memory-core/src/memory/**/*.test.ts"],
|
||||
watchMode: false,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("routes e2e targets straight to the e2e config", () => {
|
||||
expect(buildVitestRunPlans(["src/commands/models.set.e2e.test.ts"])).toEqual([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user