test: tighten mistral media and onboarding coverage

This commit is contained in:
Peter Steinberger
2026-02-23 00:18:49 +00:00
parent 8a8faf066e
commit 60c494c024
5 changed files with 153 additions and 36 deletions

View File

@@ -5,7 +5,9 @@ import { resolveMemorySearchConfig } from "./memory-search.js";
const asConfig = (cfg: OpenClawConfig): OpenClawConfig => cfg;
describe("memory search config", () => {
function configWithDefaultProvider(provider: "openai" | "local" | "gemini"): OpenClawConfig {
function configWithDefaultProvider(
provider: "openai" | "local" | "gemini" | "mistral",
): OpenClawConfig {
return asConfig({
agents: {
defaults: {
@@ -147,6 +149,13 @@ describe("memory search config", () => {
expectDefaultRemoteBatch(resolved);
});
it("includes remote defaults and model default for mistral without overrides", () => {
const cfg = configWithDefaultProvider("mistral");
const resolved = resolveMemorySearchConfig(cfg, "main");
expectDefaultRemoteBatch(resolved);
expect(resolved?.model).toBe("mistral-embed");
});
it("defaults session delta thresholds", () => {
const cfg = asConfig({
agents: {