Skip to content

Commit 9bad387

Browse files
authored
fix: Screenshot.defaults usage (#425)
1 parent aadcb60 commit 9bad387

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cypress/integration/examples/misc.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ context('Misc', () => {
8989
scale: false,
9090
disableTimersAndAnimations: true,
9191
screenshotOnRunFailure: true,
92-
beforeScreenshot () { },
93-
afterScreenshot () { },
92+
// TODO: remove this when Cypress typedefs are fixed
93+
// https://github.com/cypress-io/cypress/pull/7445
94+
// @ts-ignore
95+
onBeforeScreenshot () { },
96+
onAfterScreenshot () { },
9497
})
9598
})
9699
})

0 commit comments

Comments
 (0)