From 71fd806bb01f45c215d96c00f98bf0069c6568c5 Mon Sep 17 00:00:00 2001 From: Webman Date: Wed, 26 Aug 2026 07:54:44 -0500 Subject: [PATCH] test(autoCombo): port models_dev_tier #11508 guard from node:test to vitest (#11635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/unit/autoCombo/models-dev-tier-11508.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/autoCombo/models-dev-tier-11508.test.ts b/tests/unit/autoCombo/models-dev-tier-11508.test.ts index 1fd15470f3..840230df07 100644 --- a/tests/unit/autoCombo/models-dev-tier-11508.test.ts +++ b/tests/unit/autoCombo/models-dev-tier-11508.test.ts @@ -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();