mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-07 23:40:21 -05:00
fix: remove --config-file false references and update types (#20643)
* fix: remove --config-file false references and update types * cleanup tests and types, catch errors when calling open * fix test * remove string check * code quality feedback
This commit is contained in:
+1
-9
@@ -22,10 +22,6 @@ function unknownOption (flag, type = 'option') {
|
||||
}
|
||||
commander.Command.prototype.unknownOption = unknownOption
|
||||
|
||||
const coerceFalseOrString = (arg) => {
|
||||
return arg !== 'false' ? arg : false
|
||||
}
|
||||
|
||||
const coerceFalse = (arg) => {
|
||||
return arg !== 'false'
|
||||
}
|
||||
@@ -106,7 +102,7 @@ const descriptions = {
|
||||
ciBuildId: 'the unique identifier for a run on your CI provider. typically a "BUILD_ID" env var. this value is automatically detected for most CI providers',
|
||||
component: 'runs component tests',
|
||||
config: 'sets configuration values. separate multiple values with a comma. overrides any value in cypress.config.{ts|js}.',
|
||||
configFile: 'path to script file where configuration values are set. defaults to "cypress.config.{ts|js}". pass "false" to disable.',
|
||||
configFile: 'path to script file where configuration values are set. defaults to "cypress.config.{ts|js}".',
|
||||
detached: 'runs Cypress application in detached mode',
|
||||
dev: 'runs cypress in development and bypasses binary check',
|
||||
e2e: 'runs end to end tests',
|
||||
@@ -315,10 +311,6 @@ const castCypressOptions = (opts) => {
|
||||
castOpts.port = coerceAnyStringToInt(opts.port)
|
||||
}
|
||||
|
||||
if (_.has(opts, 'configFile')) {
|
||||
castOpts.configFile = coerceFalseOrString(opts.configFile)
|
||||
}
|
||||
|
||||
return castOpts
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user