mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
perf(test): silence config overwrite warnings in vitest
This commit is contained in:
@@ -830,6 +830,11 @@ export function createConfigIO(overrides: ConfigIoDeps = {}) {
|
||||
if (!snapshot.exists) {
|
||||
return;
|
||||
}
|
||||
const isVitest = deps.env.VITEST === "true";
|
||||
const shouldLogInVitest = deps.env.OPENCLAW_TEST_CONFIG_OVERWRITE_LOG === "1";
|
||||
if (isVitest && !shouldLogInVitest) {
|
||||
return;
|
||||
}
|
||||
const changeSummary =
|
||||
typeof changedPathCount === "number" ? `, changedPaths=${changedPathCount}` : "";
|
||||
deps.logger.warn(
|
||||
|
||||
Reference in New Issue
Block a user