Files
wehub-resource-sync 64ed910d3f
CI / Backend Checks (push) Has been cancelled
CI / Frontend Checks (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:57:20 +08:00

18 lines
656 B
TypeScript

import { describe, expect, it } from "vitest";
import { parse as parseToml } from "smol-toml";
import { getCodexCustomTemplate } from "@/config/codexTemplates";
describe("Codex custom templates", () => {
it("does not force Codex Goal mode in the custom provider template", () => {
const template = getCodexCustomTemplate();
const parsed = parseToml(template.config) as {
features?: { goals?: boolean };
model_providers?: Record<string, unknown>;
};
expect(template.auth).toEqual({ OPENAI_API_KEY: "" });
expect(parsed.features?.goals).toBeUndefined();
expect(parsed.model_providers?.custom).toBeDefined();
});
});