fix(ci): resolve mock.module() cross-file leakage in test suite

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-04 02:35:23 +09:00
parent 673b107f53
commit 6acca09bd0
15 changed files with 130 additions and 66 deletions
+4 -1
View File
@@ -9,7 +9,8 @@ mock.module("./connected-providers-cache", () => ({
afterAll(() => { mock.restore() })
import { shouldRetryError, selectFallbackProvider } from "./model-error-classifier"
const { shouldRetryError, selectFallbackProvider } = await import("./model-error-classifier")
mock.restore()
describe("model-error-classifier", () => {
beforeEach(() => {
@@ -107,3 +108,5 @@ describe("model-error-classifier", () => {
expect(result).toBe(true)
})
})
export {}