mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-29 03:09:53 -05:00
0366d4fa89
* feat: use supportFile by testingType * Fix defaults * Start renaming files, and updating system-tests * Fix some tests * Fix some tests * Fix more tests * Try to fix CI * Fix more tests * Fix some tests * Revert changes * Revert supportFile defaultValue * Fix some tests * Fix some tests * Fix some tests * Fix some tests * Update supportFile example * Update snapshots * Remove scaffold support * Handle config errors * Remove scaffold * Fix tests * Fix test * Update test * Fix test * Update supportFile template * Fix template
51 lines
1.0 KiB
JavaScript
51 lines
1.0 KiB
JavaScript
module.exports = {
|
|
'e2e': {
|
|
'supportFile': false,
|
|
setupNodeEvents (on, config) {
|
|
if (config.env.NO_MUTATE_RETURN) {
|
|
on('before:browser:launch', (browser, options) => {
|
|
// this will emit a warning
|
|
options = [...options, '--foo']
|
|
|
|
return options
|
|
})
|
|
|
|
return
|
|
}
|
|
|
|
if (config.env.CONCAT_RETURN) {
|
|
on('before:browser:launch', (browser, options) => {
|
|
// this will emit a warning
|
|
options = options.concat(['--foo'])
|
|
|
|
return options
|
|
})
|
|
|
|
return
|
|
}
|
|
|
|
if (config.env.NO_WARNING) {
|
|
on('before:browser:launch', (browser, options) => {
|
|
// this will NOT emit a warning
|
|
options.args.push('--foo')
|
|
options.args.push('--bar')
|
|
|
|
return options
|
|
})
|
|
|
|
return
|
|
}
|
|
|
|
on('before:browser:launch', (browser, options) => {
|
|
// this will emit a warning
|
|
options.push('--foo')
|
|
options.push('--bar')
|
|
|
|
return options
|
|
})
|
|
|
|
return config
|
|
},
|
|
},
|
|
}
|