fix: slug in media paths (#793)
This commit is contained in:
committed by
GitHub
parent
f96bb026d9
commit
d28c43e95a
@ -1,11 +1,14 @@
|
||||
/* eslint-disable import/prefer-default-export */
|
||||
import { applyDefaults } from '@staticcms/core/actions/config';
|
||||
|
||||
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,
|
||||
});
|
||||
): Config<EF> =>
|
||||
applyDefaults({
|
||||
backend: {
|
||||
name: 'test-repo',
|
||||
},
|
||||
...options,
|
||||
});
|
||||
|
@ -10,6 +10,8 @@ import type {
|
||||
WidgetControlProps,
|
||||
} from '@staticcms/core';
|
||||
|
||||
jest.mock('@staticcms/core/backend');
|
||||
|
||||
export const createMockWidgetControlProps = <
|
||||
T extends ValueOrNestedValue,
|
||||
F extends BaseField = UnknownField,
|
||||
|
Reference in New Issue
Block a user