chore: fixing some parts of the build
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -20,4 +20,3 @@ export {
|
||||
createRoutableExtension,
|
||||
createComponentExtension,
|
||||
} from './extensions';
|
||||
export type { ComponentLoader } from './extensions';
|
||||
|
||||
@@ -200,20 +200,23 @@ describe('TemplatePage', () => {
|
||||
|
||||
describe('createValidator', () => {
|
||||
it('should validate deep schema', () => {
|
||||
const validator = createValidator({
|
||||
type: 'object',
|
||||
properties: {
|
||||
foo: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
bar: {
|
||||
type: 'string',
|
||||
'ui:field': 'RepoUrlPicker',
|
||||
const validator = createValidator(
|
||||
{
|
||||
type: 'object',
|
||||
properties: {
|
||||
foo: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
bar: {
|
||||
type: 'string',
|
||||
'ui:field': 'RepoUrlPicker',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
{},
|
||||
);
|
||||
|
||||
const errors = { foo: { bar: { addError: jest.fn() } } };
|
||||
validator({ foo: { bar: 'github.com?owner=a' } }, errors as any);
|
||||
|
||||
@@ -136,7 +136,7 @@ const storePathValidator = (
|
||||
export const TemplatePage = ({
|
||||
customFieldExtensions = [],
|
||||
}: {
|
||||
customFieldExtensions: FieldExtensionOptions[];
|
||||
customFieldExtensions?: FieldExtensionOptions[];
|
||||
}) => {
|
||||
const errorApi = useApi(errorApiRef);
|
||||
const scaffolderApi = useApi(scaffolderApiRef);
|
||||
|
||||
Reference in New Issue
Block a user