mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-05 06:20:44 -05:00
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:
+2
-2
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user