



























@@ -36,8 +36,7 @@ vi.mock("../runtime.js", () => ({
36363737describe("tryRouteCli", () => {
3838let tryRouteCli: typeof import("./route.js").tryRouteCli;
39-// After vi.resetModules(), reimported modules get fresh loggingState.
40-// Capture the same reference that route.js uses.
39+// Capture the same loggingState reference that route.js uses.
4140let loggingState: typeof import("../logging/state.js").loggingState;
4241let originalDisableRouteFirst: string | undefined;
4342let originalHideBanner: string | undefined;
@@ -106,7 +105,7 @@ describe("tryRouteCli", () => {
106105});
107106108107// Capture the value inside the mock callback using the same loggingState
109-// reference that route.js sees (both imported after vi.resetModules()).
108+// reference that route.js sees.
110109const captured: boolean[] = [];
111110ensurePluginRegistryLoadedMock.mockImplementation(() => {
112111captured.push(loggingState.forceConsoleToStderr);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。