mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:31:24 +00: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) {
|
if (!snapshot.exists) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const isVitest = deps.env.VITEST === "true";
|
||||||
|
const shouldLogInVitest = deps.env.OPENCLAW_TEST_CONFIG_OVERWRITE_LOG === "1";
|
||||||
|
if (isVitest && !shouldLogInVitest) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const changeSummary =
|
const changeSummary =
|
||||||
typeof changedPathCount === "number" ? `, changedPaths=${changedPathCount}` : "";
|
typeof changedPathCount === "number" ? `, changedPaths=${changedPathCount}` : "";
|
||||||
deps.logger.warn(
|
deps.logger.warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user