Skip to content

Commit

Permalink
feat(scaffold): return the merged results to the caller
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jan 16, 2025
1 parent cee8a20 commit e943509
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/scaffolder/scaffolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ export default async function (options) {
// });

return {
...mergedContributions,
badges: buildBadgesDetails([mergedContributions/*, liftResults*/]),
documentation: scaffoldDocumentation({projectTypeResults, packageManager}),
tags: projectTypeResults.tags,
vcsIgnore: buildVcsIgnoreLists(mergedContributions.vcsIgnore),
verificationCommand: `${buildDocumentationCommand(packageManager)} && ${packageManager} test`,
// projectDetails: {...liftResults.homepage && {homepage: liftResults.homepage}},
nextSteps: mergedContributions.nextSteps
};
}
4 changes: 2 additions & 2 deletions src/scaffolder/scaffolder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ describe('javascript project scaffolder', () => {
const results = await scaffold(options);

expect(results).toEqual({
...mergedResults,
documentation,
tags,
badges: badgeResults,
// projectDetails: {},
vcsIgnore,
verificationCommand: `${documentationCommand} && ${packageManager} test`,
nextSteps: mergedNextSteps
verificationCommand: `${documentationCommand} && ${packageManager} test`
});
expect(scaffoldPackageManager).toHaveBeenCalledWith({projectRoot, packageManager});
});
Expand Down

0 comments on commit e943509

Please sign in to comment.