Open CyrilKrylatov opened 4 years ago
@CyrilKrylatov Don't know if you've figured this out already, but i had this issue and looks like the reason was that i had 2 module.exports
statements in the plugins/index.js
file. So i moved everything to one module.exports
statement.
This was before:
const { initPlugin } = require('cypress-plugin-snapshots/plugin');
module.exports = (on, config) => {
initPlugin(on, config);
return config;
};
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.args.push('--disable-dev-shm-usage');
};
return launchOptions
});
};
And this is after:
const { initPlugin } = require('cypress-plugin-snapshots/plugin');
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.args.push('--disable-dev-shm-usage');
};
return launchOptions
});
initPlugin(on, config);
return config;
};
After doing that, the issue disappeared.
@adesko - Thank you so much, that also worked for me!
Describe the bug Hi @meinaart,
I have the following error when I'm trying to use cypress-plugin-snapshots:
To Reproduce Steps to reproduce the behavior:
Expected behavior I'm expecting to not have this error I guess
Screenshots
Desktop (please complete the following information):
Additional context Thank you for your support!