mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: add opt-in leaf project scheduler
This commit is contained in:
@@ -612,12 +612,16 @@ export function buildFullSuiteVitestRunPlans(args, cwd = process.cwd()) {
|
||||
},
|
||||
];
|
||||
}
|
||||
return fullSuiteVitestShards.map((shard) => ({
|
||||
config: shard.config,
|
||||
forwardedArgs,
|
||||
includePatterns: null,
|
||||
watchMode: false,
|
||||
}));
|
||||
const expandToProjectConfigs = process.env.OPENCLAW_TEST_PROJECTS_LEAF_SHARDS === "1";
|
||||
return fullSuiteVitestShards.flatMap((shard) => {
|
||||
const configs = expandToProjectConfigs ? shard.projects : [shard.config];
|
||||
return configs.map((config) => ({
|
||||
config,
|
||||
forwardedArgs,
|
||||
includePatterns: null,
|
||||
watchMode: false,
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
export function createVitestRunSpecs(args, params = {}) {
|
||||
|
||||
Reference in New Issue
Block a user