cypress-cli type for CypressRunResult::runs is incorrect (can be null/undefined)
See original GitHub issueCurrent behavior:
In the event that the browser fails to connect, the run promise resolves with results which has runs
of null
or undefined
. (Which is likely a separate issue altogether. It should probably not resolve at all - it should reject).
However, the typings indicate that the type of runs
is RunResult[]
which doesn’t match null
Desired behavior:
The type should indicate that runs
can be undefined or null, or run()
should not resolve on an error running the tests altogether.
Test code to reproduce
- Clone https://github.com/xdumaine/cypress-test-tiny
npm i && npm test
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Command Line - Cypress Documentation
Commands. cypress run. Runs Cypress tests to completion. By default, cypress run will run all tests headlessly.
Read more >BrowserStack-Cypress CLI reference
List of all the CLI commands and args you can use to run tests, stop the ones that are running, and retrieve build...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jennifer-shehane my PR is ready for final review…
Released in
4.4.1
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v4.4.1, please open a new issue.