MCPcopy Create free account
hub / github.com/cypress-io/github-action / validateCustomCommand

Function validateCustomCommand

index.js:757–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

755]
756let ignoredInputParameters = []
757const validateCustomCommand = () => {
758 commandIgnoredBooleanInputs.forEach((input) => {
759 const inputParameter = input[0]
760 const inputDefault = input[1]
761 if (getInputBool(inputParameter) !== inputDefault) {
762 ignoredInputParameters.push(inputParameter)
763 }
764 })
765 commandIgnoredStringInputs.forEach((input) => {
766 if (core.getInput(input)) {
767 ignoredInputParameters.push(input)
768 }
769 })
770 if (ignoredInputParameters.length > 0) {
771 core.warning(
772 `command parameter is used and the following other parameters are ignored: ${ignoredInputParameters
773 .sort()
774 .join(', ')}.`
775 )
776 }
777}
778
779/**
780 * Run Cypress tests by collecting input parameters

Callers 1

runTestsFunction · 0.85

Calls 1

getInputBoolFunction · 0.85

Tested by

no test coverage detected