File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,17 @@ const getAccessibilityPlatforms = (bsConfig) => {
183
183
const addCypressZipStartLocation = ( runSettings ) => {
184
184
let resolvedHomeDirectoryPath = path . resolve ( runSettings . home_directory ) ;
185
185
let resolvedCypressConfigFilePath = path . resolve ( runSettings . cypressConfigFilePath ) ;
186
- runSettings . cypressZipStartLocation = path . dirname ( resolvedCypressConfigFilePath . split ( resolvedHomeDirectoryPath ) [ 1 ] ) ;
186
+
187
+ // Convert to POSIX style paths for consistent behavior
188
+ let posixHomePath = resolvedHomeDirectoryPath . split ( path . sep ) . join ( path . posix . sep ) ;
189
+ let posixConfigPath = resolvedCypressConfigFilePath . split ( path . sep ) . join ( path . posix . sep ) ;
190
+
191
+ runSettings . cypressZipStartLocation = path . posix . dirname ( posixConfigPath . split ( posixHomePath ) [ 1 ] ) ;
187
192
runSettings . cypressZipStartLocation = runSettings . cypressZipStartLocation . substring ( 1 ) ;
188
193
logger . debug ( `Setting cypress zip start location = ${ runSettings . cypressZipStartLocation } ` ) ;
189
194
}
190
195
196
+
191
197
const validate = ( bsConfig , args ) => {
192
198
return new Promise ( function ( resolve , reject ) {
193
199
logger . info ( Constants . userMessages . VALIDATING_CONFIG ) ;
You can’t perform that action at this time.
0 commit comments