diff --git a/docs/features/software-templates/installation.md b/docs/features/software-templates/installation.md index b1c7712f85..726f5faead 100644 --- a/docs/features/software-templates/installation.md +++ b/docs/features/software-templates/installation.md @@ -103,6 +103,7 @@ export default async function createPlugin({ const cookiecutterTemplater = new CookieCutter(); const craTemplater = new CreateReactAppTemplater(); const templaters = new Templaters(); + // Register default templaters templaters.register('cookiecutter', cookiecutterTemplater); templaters.register('cra', craTemplater); @@ -110,6 +111,7 @@ export default async function createPlugin({ const githubPreparer = new GithubPreparer(); const preparers = new Preparers(); + // Register default preparers preparers.register('file', filePreparer); preparers.register('github', githubPreparer); diff --git a/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.test.ts b/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.test.ts index dd1152d3d5..90fdd106a1 100644 --- a/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.test.ts +++ b/plugins/scaffolder-backend/src/scaffolder/stages/publish/github.test.ts @@ -231,7 +231,7 @@ describe('GitHub Publisher', () => { repoVisibility: 'internal', }); - it('creates a repo in an organisation with internal visibility', async () => { + it('creates a repo in an organisation if the organisation with private visibility', async () => { mockGithubClient.repos.createInOrg.mockResolvedValue({ data: { clone_url: 'mockclone',