test(autoCombo): port models_dev_tier #11508 guard from node:test to vitest (#11635)

Merged via /merge-batch (2026-08-26, v3.8.51). Validado com o config correto (`vitest run --config vitest.mcp.config.ts`, que já inclui `tests/unit/autoCombo/**/*.test.ts`): 5/5 testes passando. Obrigado por destravar esse base-red.
This commit is contained in:
Webman
2026-08-26 07:54:44 -05:00
committed by GitHub
parent adedc351d7
commit 71fd806bb0

View File

@@ -1,4 +1,4 @@
import { describe, it, before } from "node:test";
import { describe, it, beforeAll } from "vitest";
import assert from "node:assert/strict";
import { getDbInstance } from "../../../src/lib/db/core.ts";
@@ -51,7 +51,7 @@ function seed(provider: string, modelId: string, caps: {
).run(provider, modelId, caps.tool_call ?? null, caps.reasoning ?? null, caps.limit_context ?? null);
}
before(() => {
beforeAll(() => {
ensureTable();
// Force both module caches to re-read after our seeds.
invalidateCapabilitiesCache();