mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-04 14:00:22 -05:00
cli: exit with error code 1 on invalid command (#461)
This commit is contained in:
@@ -20,11 +20,11 @@ describe('cli', function () {
|
||||
this.exec = (args) => cli.init(`node test ${args}`.split(' '))
|
||||
})
|
||||
|
||||
context('unknown command', () =>
|
||||
context('unknown command', () => {
|
||||
it('shows usage and exits', () =>
|
||||
execa('bin/cypress', ['foo']).then(snapshot)
|
||||
)
|
||||
)
|
||||
})
|
||||
|
||||
context('cypress version', function () {
|
||||
it('reports package version', function (done) {
|
||||
|
||||
Reference in New Issue
Block a user