UNPKG

@kmcid/cypress-parallel-cli

Version:

CLI app for running parallel cypress tests

22 lines (20 loc) 918 B
// We have been encountering memory issues when running // For now our fix is to apply BigBinary's fix where they disable some chrome features and increasing heap size // https://www.bigbinary.com/blog/how-we-fixed-the-cypress-out-of-memory-error-in-chromium-browsers module.exports = { cloudOptimizations: (on) => { if (!on) throw new Error('Cloud runner optimizations require the "on" parameter') on('before:browser:launch', (browser, launchOptions) => { if (['chrome', 'edge'].includes(browser.name)) { if (browser.isHeadless) { launchOptions.args.push('--no-sandbox') launchOptions.args.push('--disable-gl-drawing-for-tests') launchOptions.args.push('--disable-gpu') launchOptions.args.push("--disable-dev-shm-usage") } launchOptions.args.push('--js-flags=--max-old-space-size=4096') } return launchOptions }) }, }