File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,7 @@ Cypress.Commands.add(
162
162
} ,
163
163
log : false ,
164
164
} )
165
- . then ( ( ) => cy . task ( TASK . processImgPath , { path : imgPath } ) . then ( newImgPath => imgPath = newImgPath ) )
166
- . then ( ( ) => imgPath ) ;
165
+ . then ( ( ) => cy . task ( TASK . processImgPath , { path : imgPath } ) . then ( newImgPath => imgPath = newImgPath ) ) ;
167
166
} )
168
167
. then ( ( imgPath ) =>
169
168
cy
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export const compareImagesTask = async (
183
183
export const doesFileExistTask = ( { path } : { path : string } ) =>
184
184
fs . existsSync ( path ) ;
185
185
186
- export const processImgPath = ( { path } ) => path ;
186
+ export const processImgPath = ( { path : string } ) => path ;
187
187
188
188
/* c8 ignore start */
189
189
export const initTaskHook = ( config : Cypress . PluginConfigOptions ) => ( {
You can’t perform that action at this time.
0 commit comments