Skip to content

Commit a1c09b5

Browse files
committed
disable Cypress using GPU
1 parent 0dae1ea commit a1c09b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cypress.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ module.exports = defineConfig({
2020
// We've imported your old cypress plugins here.
2121
// You may want to clean this up later by importing these.
2222
setupNodeEvents(on, config) {
23+
on('before:browser:launch', (_browser, launchOptions) => {
24+
launchOptions.args.push('--disable-gpu');
25+
26+
return launchOptions;
27+
});
28+
2329
return require('./cypress/plugins/index')(on, config);
2430
},
2531
baseUrl: 'http://localhost:3000',

0 commit comments

Comments
 (0)