Skip to content

Commit 573e728

Browse files
committed
feat: stop logging all of the tasks
1 parent 338cd19 commit 573e728

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

src/commands.ts

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ Cypress.Commands.add(
3636
title += ` #${++nameCacheCounter[title]}`;
3737

3838
return cy
39-
.log("visual regression diff")
4039
.then(() =>
41-
cy.task(TASK.getScreenshotPath, {
42-
title,
43-
specPath: Cypress.spec.relative,
44-
})
40+
cy.task(
41+
TASK.getScreenshotPath,
42+
{
43+
title,
44+
specPath: Cypress.spec.relative,
45+
},
46+
{ log: false }
47+
)
4548
)
4649
.then((screenshotPath) => {
4750
let imgPath: string;
@@ -52,16 +55,21 @@ Cypress.Commands.add(
5255
imgPath = props.path;
5356
options.screenshotConfig?.onAfterScreenshot?.(el, props);
5457
},
58+
log: false,
5559
})
5660
.then(() => imgPath);
5761
})
5862
.then((imgPath) =>
5963
cy
60-
.task(TASK.compareImages, {
61-
imgNew: imgPath,
62-
imgOld: imgPath.replace(FILE_SUFFIX.actual, ""),
63-
...(options.diffConfig || {}),
64-
})
64+
.task(
65+
TASK.compareImages,
66+
{
67+
imgNew: imgPath,
68+
imgOld: imgPath.replace(FILE_SUFFIX.actual, ""),
69+
...(options.diffConfig || {}),
70+
},
71+
{ log: false }
72+
)
6573
.then((res) => ({
6674
res: res as null | {
6775
error?: boolean;

0 commit comments

Comments
 (0)