The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import canonicalCatalog from 'src/engine/metadata-modules/ai/ai-models/ai-models.json';
import shippedCatalog from 'src/engine/metadata-modules/ai/ai-models/ai-providers.json';
import selfHostSpec from 'src/engine/metadata-modules/ai/ai-models/ai-self-host-spec.json';
import { type CatalogSpec } from '../types/catalog-spec.type';
import {
type CanonicalCatalog,
projectCatalog,
} from '../utils/project-catalog.util';
// The shipped catalog is generated, so a hand edit is the drift this pipeline exists to remove
describe('the shipped catalog', () => {
it('is what the self-host spec projects from the model catalog', () => {
const projected = projectCatalog({
canonicalCatalog: canonicalCatalog as CanonicalCatalog,
spec: selfHostSpec as CatalogSpec,
});
expect(projected).toEqual(shippedCatalog);
});
});