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