blob: e99101640246cac486657d398f012fcb02ae0d67 [file] [log] [blame]
import {defineConfig} from 'cypress';
export default defineConfig({
e2e: {
specPattern: ['*.cy.js'],
supportFile: false,
setupNodeEvents(on, config) {
on('before:browser:launch', (browser = {}, launchOptions) => {
launchOptions.args.push('--disable-gpu-shader-disk-cache');
launchOptions.args.push('--enable-logging');
launchOptions.args.push('--v=stderr');
return launchOptions;
});
// Lets users print to the console:
// cy.task('log', 'message here');
on('task', {
log(message) {
console.log(message);
return null;
},
});
},
},
});