chore: fixing some parts of the build

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-05-19 21:13:18 +02:00
parent 09fad54e12
commit f487ad12e0
3 changed files with 14 additions and 12 deletions
@@ -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);