@@ -1006,15 +1006,15 @@ describe('utils', () => {
1006
1006
let bsConfig = {
1007
1007
run_settings : {
1008
1008
specs : 'specs' ,
1009
- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1010
- exclude : 'exclude'
1009
+ cypressProjectDir : 'cypressProjectDir ' ,
1010
+ exclude : 'exclude' ,
1011
1011
} ,
1012
1012
} ;
1013
1013
1014
1014
utils . getNumberOfSpecFiles ( bsConfig , { } , { } ) ;
1015
1015
sinon . assert . calledOnce ( getNumberOfSpecFilesStub ) ;
1016
1016
sinon . assert . calledOnceWithExactly ( getNumberOfSpecFilesStub , 'specs' , {
1017
- cmd : 'cypressConfigFilePath ' ,
1017
+ cwd : 'cypressProjectDir ' ,
1018
1018
matchBase : true ,
1019
1019
ignore : 'exclude' ,
1020
1020
} ) ;
@@ -1025,15 +1025,15 @@ describe('utils', () => {
1025
1025
let getNumberOfSpecFilesStub = sinon . stub ( glob , 'sync' ) ;
1026
1026
let bsConfig = {
1027
1027
run_settings : {
1028
- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1029
- exclude : 'exclude'
1028
+ cypressProjectDir : 'cypressProjectDir ' ,
1029
+ exclude : 'exclude' ,
1030
1030
} ,
1031
1031
} ;
1032
1032
1033
1033
utils . getNumberOfSpecFiles ( bsConfig , { } , { } ) ;
1034
1034
1035
1035
sinon . assert . calledOnceWithExactly ( getNumberOfSpecFilesStub , `cypress/integration/**/*.+(${ constant . specFileTypes . join ( "|" ) } )` , {
1036
- cmd : 'cypressConfigFilePath ' ,
1036
+ cwd : 'cypressProjectDir ' ,
1037
1037
matchBase : true ,
1038
1038
ignore : 'exclude' ,
1039
1039
} ) ;
@@ -1044,7 +1044,7 @@ describe('utils', () => {
1044
1044
let getNumberOfSpecFilesStub = sinon . stub ( glob , 'sync' ) ;
1045
1045
let bsConfig = {
1046
1046
run_settings : {
1047
- cypressConfigFilePath : 'cypressConfigFilePath ' ,
1047
+ cypressProjectDir : 'cypressProjectDir ' ,
1048
1048
exclude : 'exclude' ,
1049
1049
} ,
1050
1050
} ;
@@ -1055,7 +1055,7 @@ describe('utils', () => {
1055
1055
getNumberOfSpecFilesStub ,
1056
1056
`specs/**/*.+(${ constant . specFileTypes . join ( '|' ) } )` ,
1057
1057
{
1058
- cmd : 'cypressConfigFilePath ' ,
1058
+ cwd : 'cypressProjectDir ' ,
1059
1059
matchBase : true ,
1060
1060
ignore : 'exclude' ,
1061
1061
}
0 commit comments