@@ -91,6 +91,7 @@ describe('project scaffolder', () => {
91
91
tags
92
92
} ;
93
93
const licenseResults = { badges : { consumer : { license : licenseBadge } } } ;
94
+ const gitResults = { nextSteps : gitNextSteps } ;
94
95
const contributingResults = any . simpleObject ( ) ;
95
96
when ( optionsValidator . validate )
96
97
. calledWith ( options )
@@ -112,7 +113,7 @@ describe('project scaffolder', () => {
112
113
when ( scaffoldGit )
113
114
. calledWith ( gitRepoShouldBeInitialized , projectPath , projectName , vcsHosts , visibility , decisions )
114
115
. mockResolvedValue ( vcs ) ;
115
- liftGit . mockResolvedValue ( { nextSteps : gitNextSteps } ) ;
116
+ liftGit . mockResolvedValue ( gitResults ) ;
116
117
when ( licenseScaffolder . default )
117
118
. calledWith ( { projectRoot : projectPath , license, copyright} )
118
119
. mockResolvedValue ( licenseResults ) ;
@@ -123,10 +124,7 @@ describe('project scaffolder', () => {
123
124
...vcs ,
124
125
projectRoot : projectPath ,
125
126
description,
126
- visibility,
127
- homepage : undefined ,
128
- nextSteps : [ ...dependencyUpdaterNextSteps ] ,
129
- tags
127
+ visibility
130
128
}
131
129
)
132
130
. mockResolvedValue ( vcsOriginDetails ) ;
@@ -152,11 +150,17 @@ describe('project scaffolder', () => {
152
150
expect ( lift ) . toHaveBeenCalledWith ( {
153
151
projectRoot : projectPath ,
154
152
vcs,
155
- results : deepmerge . all ( [ licenseResults , languageResults , dependencyUpdaterResults , contributingResults ] ) ,
153
+ results : deepmerge . all ( [
154
+ licenseResults ,
155
+ languageResults ,
156
+ dependencyUpdaterResults ,
157
+ contributingResults ,
158
+ gitResults
159
+ ] ) ,
156
160
enhancers : { ...dependencyUpdaters , ...vcsHosts }
157
161
} ) ;
158
162
expect ( resultsReporter . reportResults ) . toHaveBeenCalledWith ( {
159
- nextSteps : [ ...gitNextSteps , ...dependencyUpdaterNextSteps ]
163
+ nextSteps : [ ...dependencyUpdaterNextSteps , ...gitNextSteps ]
160
164
} ) ;
161
165
} ) ;
162
166
@@ -259,11 +263,12 @@ describe('project scaffolder', () => {
259
263
nextSteps : languageNextSteps ,
260
264
tags
261
265
} ;
266
+ const gitResults = { nextSteps : gitNextSteps } ;
262
267
when ( optionsValidator . validate )
263
268
. calledWith ( options )
264
269
. mockReturnValue ( { decisions, plugins : { languages, vcsHosts} } ) ;
265
270
scaffoldGit . mockResolvedValue ( vcs ) ;
266
- liftGit . mockResolvedValue ( { nextSteps : gitNextSteps } ) ;
271
+ liftGit . mockResolvedValue ( gitResults ) ;
267
272
prompts . promptForBaseDetails . mockResolvedValue ( {
268
273
[ coreQuestionNames . PROJECT_NAME ] : projectName ,
269
274
[ coreQuestionNames . VISIBILITY ] : visibility ,
@@ -304,7 +309,7 @@ describe('project scaffolder', () => {
304
309
expect ( liftGit ) . toHaveBeenCalledWith ( { projectRoot : projectPath , origin : vcsOriginDetails } ) ;
305
310
expect ( scaffoldReadme ) . toHaveBeenCalledWith ( { projectName, projectRoot : projectPath , description} ) ;
306
311
expect ( execaPipe ) . toHaveBeenCalledWith ( process . stdout ) ;
307
- expect ( resultsReporter . reportResults ) . toHaveBeenCalledWith ( { nextSteps : [ ...gitNextSteps , ...languageNextSteps ] } ) ;
312
+ expect ( resultsReporter . reportResults ) . toHaveBeenCalledWith ( { nextSteps : [ ...languageNextSteps , ...gitNextSteps ] } ) ;
308
313
} ) ;
309
314
310
315
it ( 'should consider the language details to be optional' , async ( ) => {
0 commit comments