static-cms/packages/core/test/data/config.mock.ts
2023-03-30 13:29:09 -04:00

12 lines
331 B
TypeScript

/* eslint-disable import/prefer-default-export */
import type { BaseField, Config } from '@staticcms/core';
export const createMockConfig = <EF extends BaseField>(
options: Omit<Partial<Config<EF>>, 'collections'> & Pick<Config<EF>, 'collections'>,
): Config<EF> => ({
backend: {
name: 'test-repo',
},
...options,
});