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.
You're filtering the available options by the keys you provide, however the
onAfterScreenshot
andonBeforeScreenshot
keys are missing from the default object. Since we don't need to have them as a default ofnull
or() => {}
, I just added the keys to the array when choosing which keys we can use in the config options.