perf(test): eliminate resetModules via injectable seams

This commit is contained in:
Peter Steinberger
2026-02-13 16:20:31 +00:00
parent a844fb161c
commit b272158fe4
21 changed files with 223 additions and 188 deletions

View File

@@ -8,6 +8,10 @@ import { normalizeServePath } from "./gmail.js";
let cachedPythonPath: string | null | undefined;
const MAX_OUTPUT_CHARS = 800;
export function resetGmailSetupUtilsCachesForTest(): void {
cachedPythonPath = undefined;
}
function trimOutput(value: string): string {
const trimmed = value.trim();
if (!trimmed) {