meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
489 stars 116 forks source link

Add missing screenshot configuration options #187

Closed JordanMcDonough closed 2 years ago

JordanMcDonough commented 3 years ago

You're filtering the available options by the keys you provide, however the onAfterScreenshot and onBeforeScreenshot keys are missing from the default object. Since we don't need to have them as a default of null or () => {}, I just added the keys to the array when choosing which keys we can use in the config options.

JordanMcDonough commented 2 years ago

Closed this because of no activity since 30th June 2021