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:
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user