mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
test(agents): isolate shared subagent state
This commit is contained in:
@@ -4,6 +4,7 @@ export function createAgentsVitestConfig(env?: Record<string, string | undefined
|
||||
return createScopedVitestConfig(["src/agents/**/*.test.ts"], {
|
||||
dir: "src/agents",
|
||||
env,
|
||||
fileParallelism: false,
|
||||
name: "agents",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -141,6 +141,7 @@ export function createScopedVitestConfig(
|
||||
includeOpenClawRuntimeSetup?: boolean;
|
||||
isolate?: boolean;
|
||||
name?: string;
|
||||
fileParallelism?: boolean;
|
||||
pool?: "forks" | "threads";
|
||||
passWithNoTests?: boolean;
|
||||
setupFiles?: string[];
|
||||
@@ -184,6 +185,9 @@ export function createScopedVitestConfig(
|
||||
include: relativizeScopedPatterns(includeFromEnv ?? cliInclude ?? include, scopedDir),
|
||||
exclude,
|
||||
...(options?.pool ? { pool: options.pool } : {}),
|
||||
...(options?.fileParallelism === undefined
|
||||
? {}
|
||||
: { fileParallelism: options.fileParallelism }),
|
||||
...(scopedGroupOrder === undefined
|
||||
? {}
|
||||
: {
|
||||
|
||||
Reference in New Issue
Block a user