blob: c8d6988fed28076dd67fab604193cf220f8567e3 [file] [log] [blame]
Philipp Schrader175a93c2023-02-19 13:13:40 -08001const {defineConfig} = require('cypress');
2
3module.exports = defineConfig({
4 e2e: {
5 specPattern: ['*.cy.js'],
6 supportFile: false,
7 setupNodeEvents(on, config) {
8 on('before:browser:launch', (browser = {}, launchOptions) => {
9 launchOptions.args.push('--disable-gpu-shader-disk-cache');
Philipp Schrader54cae032023-02-26 15:08:31 -080010 launchOptions.args.push('--enable-logging');
11 launchOptions.args.push('--v=stderr');
12 return launchOptions;
Philipp Schrader175a93c2023-02-19 13:13:40 -080013 });
14
15 // Lets users print to the console:
16 // cy.task('log', 'message here');
17 on('task', {
18 log(message) {
19 console.log(message);
20 return null;
21 },
22 });
23 },
24 },
25});