test(doctor): tighten provider call typing assertions

This commit is contained in:
Gustavo Madeira Santana
2026-03-02 20:39:32 -05:00
parent 9be045e26b
commit 09be6f7cb5

View File

@@ -256,9 +256,8 @@ describe("noteMemorySearchHealth", () => {
await noteMemorySearchHealth(cfg);
expect(note).toHaveBeenCalledTimes(1);
const providersChecked = resolveApiKeyForProvider.mock.calls.map(
([arg]: [{ provider: string }]) => arg.provider,
);
const providerCalls = resolveApiKeyForProvider.mock.calls as Array<[{ provider: string }]>;
const providersChecked = providerCalls.map(([arg]) => arg.provider);
expect(providersChecked).toEqual(["openai", "google", "voyage", "mistral"]);
});
});