@@ -9,7 +9,7 @@ import * as td from 'testdouble';
99const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ; // eslint-disable-line no-underscore-dangle
1010const stubbedNodeModules = stubbedFs . load ( resolve ( __dirname , '..' , '..' , '..' , '..' , 'node_modules' ) ) ;
1111
12- let lift , test , scaffold ;
12+ let lift , test , scaffold , qualify ;
1313
1414Before ( async function ( ) {
1515 this . existingBranches = any . listOf ( any . word ) ;
@@ -20,7 +20,7 @@ Before(async function () {
2020 this . jsCore = await td . replaceEsm ( '@form8ion/javascript-core' ) ;
2121
2222 // eslint-disable-next-line import/no-extraneous-dependencies,import/no-unresolved
23- ( { lift, test, scaffold} = await import ( '@form8ion/github-actions-node-ci' ) ) ;
23+ ( { lift, test, scaffold, qualify } = await import ( '@form8ion/github-actions-node-ci' ) ) ;
2424
2525 stubbedFs ( {
2626 node_modules : stubbedNodeModules ,
@@ -34,11 +34,13 @@ After(function () {
3434} ) ;
3535
3636When ( 'the project is scaffolded' , async function ( ) {
37- this . results = await scaffold ( {
38- projectRoot : this . projectRoot ,
39- vcs : { owner : this . vcsOwner , name : this . vcsName } ,
40- ...this . preferredRunner && { runner : this . preferredRunner }
41- } ) ;
37+ if ( await qualify ( { projectRoot : this . projectRoot } ) ) {
38+ this . results = await scaffold ( {
39+ projectRoot : this . projectRoot ,
40+ vcs : { owner : this . vcsOwner , name : this . vcsName } ,
41+ ...this . preferredRunner && { runner : this . preferredRunner }
42+ } ) ;
43+ }
4244} ) ;
4345
4446When ( 'the project is lifted' , async function ( ) {
0 commit comments