feat(component-testing): Expose CT through CLI module API (#16368)

* Added testingType CLI module option

* Removed isComponentTesting custom arg and replaced with testingType

* Added default value to docstring

* Removed mutating of args

* Added Module API manual testing docs
This commit is contained in:
Adam Gastineau
2021-05-07 09:44:15 -07:00
committed by GitHub
parent 3f31f09448
commit b8527a2a7f
11 changed files with 137 additions and 29 deletions
+2 -2
View File
@@ -425,7 +425,7 @@ module.exports = {
.action((opts) => {
debug('opening Cypress')
require('./exec/open')
.start(util.parseOpts(opts), { isComponentTesting: true })
.start({ ...util.parseOpts(opts), testingType: 'component' })
.catch(util.logErrorExit1)
})
@@ -456,7 +456,7 @@ module.exports = {
.action((opts) => {
debug('running Cypress run-ct')
require('./exec/run')
.start(util.parseOpts(opts), { isComponentTesting: true })
.start({ ...util.parseOpts(opts), testingType: 'component' })
.then(util.exit)
.catch(util.logErrorExit1)
})