Skip to content

Commit 8692901

Browse files
authored
Update task.hook.ts
1 parent 93bcd2b commit 8692901

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/task.hook.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,15 @@ export const compareImagesTask = async (
183183
export const doesFileExistTask = ({ path }: { path: string }) =>
184184
fs.existsSync(path);
185185

186+
export const processImgPath = ({ path }) => path;
187+
186188
/* c8 ignore start */
187189
export const initTaskHook = (config: Cypress.PluginConfigOptions) => ({
188190
[TASK.getScreenshotPathInfo]: getScreenshotPathInfoTask,
189191
[TASK.cleanupImages]: cleanupImagesTask.bind(undefined, config),
190192
[TASK.doesFileExist]: doesFileExistTask,
191193
[TASK.approveImage]: approveImageTask,
192194
[TASK.compareImages]: compareImagesTask,
195+
[TASK.processImgPath]: processImgPath,
193196
});
194197
/* c8 ignore stop */

0 commit comments

Comments
 (0)