chore: reverting #22742 (#23047)

* Revert "chore: Refactor cy.state('subject') and `cy.then()` (#22742)"

This reverts commit 0ed8dd57b6.

* Run more tests
This commit is contained in:
Matt Henkes
2022-08-01 15:35:04 -05:00
committed by GitHub
parent 4d3ad9edaa
commit 51ef99ac5b
19 changed files with 241 additions and 225 deletions

View File

@@ -21,10 +21,10 @@ if (process.versions && semver.satisfies(process.versions.node, '>=17.0.0') && s
}
function buildCommand () {
const file = process.argv.slice(2)
const file = process.argv.slice(2).join(' ') ?? ''
let program = `node "${webpackCli}"`
return file.length ? `${program } "${file.join('" "')}"` : program
return file ? `${program } "${file}"` : program
}
const program = buildCommand()