mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-30 03:51:21 -05:00
af26fbebe6
Co-authored-by: Jessica Sachs <jess@jessicasachs.io> Co-authored-by: Barthélémy Ledoux <bart@cypress.io> Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com> Co-authored-by: Zach Bloomquist <github@chary.us> Co-authored-by: Dmitriy Kovalenko <dmtr.kovalenko@outlook.com> Co-authored-by: ElevateBart <ledouxb@gmail.com> Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com>
26 lines
668 B
JavaScript
26 lines
668 B
JavaScript
module.exports = (mode, options) => {
|
|
if (mode === 'record') {
|
|
return require('./record').run(options)
|
|
}
|
|
|
|
if (mode === 'smokeTest') {
|
|
return require('./smoke_test').run(options)
|
|
}
|
|
|
|
if (mode === 'run' && options.testingType === 'e2e') {
|
|
return require('./run-e2e').run(options)
|
|
}
|
|
|
|
if (mode === 'run' && options.testingType === 'component') {
|
|
return require('./run-ct').run(options)
|
|
}
|
|
|
|
if (mode === 'interactive' && options.testingType === 'e2e') {
|
|
return require('./interactive-e2e').run(options)
|
|
}
|
|
|
|
if (mode === 'interactive' && options.testingType === 'component') {
|
|
return require('./interactive-ct').run(options)
|
|
}
|
|
}
|