Closed lanakudrya closed 6 months ago
The problem is that the plugin overrides the after:run
hook, which the reporter needs.
You need to find a way to call the plugin and the reporter after:run
hook.
module.exports = defineConfig({
reporter: 'cypress-mochawesome-reporter',
e2e: {
setupNodeEvents(on, config) {
on('before:run', async (details) => {
console.log('override before:run');
await beforeRunHook(details);
});
on('after:run', async () => {
console.log('override after:run');
await afterRunHook();
// ***************** Find a way to add the plugin after:run behavior here
});
},
},
});
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
Environment
What happened?
HTML report sopped generation when cypress-image-diff-js": "^1.32.0" installed https://github.com/uktrade/cypress-image-diff Only json files are generating. Overriding of task after:run does not help
Config file
Relevant log output
Anything else?
No response