@@ -1006,15 +1006,15 @@ describe('utils', () => {
10061006 let bsConfig = {
10071007 run_settings : {
10081008 specs : 'specs' ,
1009- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1010- exclude : 'exclude'
1009+ cypressProjectDir : 'cypressProjectDir ' ,
1010+ exclude : 'exclude' ,
10111011 } ,
10121012 } ;
10131013
10141014 utils . getNumberOfSpecFiles ( bsConfig , { } , { } ) ;
10151015 sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
10161016 sinon . assert . calledOnceWithExactly ( getNumberOfSpecFilesStub , 'specs' , {
1017- cmd : 'cypressConfigFilePath ' ,
1017+ cwd : 'cypressProjectDir ' ,
10181018 matchBase : true ,
10191019 ignore : 'exclude' ,
10201020 } ) ;
@@ -1025,15 +1025,15 @@ describe('utils', () => {
10251025 let getNumberOfSpecFilesStub = sinon . stub ( glob , 'sync' ) ;
10261026 let bsConfig = {
10271027 run_settings : {
1028- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1029- exclude : 'exclude'
1028+ cypressProjectDir : 'cypressProjectDir ' ,
1029+ exclude : 'exclude' ,
10301030 } ,
10311031 } ;
10321032
10331033 utils . getNumberOfSpecFiles ( bsConfig , { } , { } ) ;
10341034
10351035 sinon . assert . calledOnceWithExactly ( getNumberOfSpecFilesStub , `cypress/integration/**/*.+(${ constant . specFileTypes . join ( "|" ) } )` , {
1036- cmd : 'cypressConfigFilePath ' ,
1036+ cwd : 'cypressProjectDir ' ,
10371037 matchBase : true ,
10381038 ignore : 'exclude' ,
10391039 } ) ;
@@ -1044,7 +1044,7 @@ describe('utils', () => {
10441044 let getNumberOfSpecFilesStub = sinon . stub ( glob , 'sync' ) ;
10451045 let bsConfig = {
10461046 run_settings : {
1047- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1047+ cypressProjectDir : 'cypressProjectDir ' ,
10481048 exclude : 'exclude' ,
10491049 } ,
10501050 } ;
@@ -1055,7 +1055,7 @@ describe('utils', () => {
10551055 getNumberOfSpecFilesStub ,
10561056 `specs/**/*.+(${ constant . specFileTypes . join ( '|' ) } )` ,
10571057 {
1058- cmd : 'cypressConfigFilePath ' ,
1058+ cwd : 'cypressProjectDir ' ,
10591059 matchBase : true ,
10601060 ignore : 'exclude' ,
10611061 }
0 commit comments