Merge pull request #3243 from code-yeongyu/fix/ci-flaky-isolation

fix(ci): isolate model-resolver and prometheus-config tests from mock.module contamination
This commit is contained in:
YeonGyu-Kim
2026-04-08 23:44:52 +09:00
committed by GitHub
2 changed files with 9 additions and 1 deletions
@@ -1,4 +1,8 @@
import { describe, expect, test, spyOn, afterEach, beforeEach } from "bun:test";
import { describe, expect, test, spyOn, afterEach, beforeEach, mock } from "bun:test";
// Isolate from other tests that mock.module the logger (CI cross-contamination fix)
mock.module("../shared/logger", () => ({ log: (..._args: unknown[]) => {} }))
import { buildPrometheusAgentConfig } from "./prometheus-agent-config-builder";
import * as shared from "../shared";
import * as categoryResolver from "./category-config-resolver";
+4
View File
@@ -1,4 +1,8 @@
import { describe, expect, test, spyOn, beforeEach, afterEach, mock } from "bun:test"
// Isolate from other tests that mock.module the logger (CI cross-contamination fix)
mock.module("./logger", () => ({ log: (..._args: unknown[]) => {} }))
import { resolveModel, resolveModelWithFallback, type ModelResolutionInput, type ExtendedModelResolutionInput, type ModelResolutionResult, type ModelSource } from "./model-resolver"
import * as logger from "./logger"
import * as connectedProvidersCache from "./connected-providers-cache"