You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Cypress NPM module fails to find any specs it resolves with an object that is not typed right now
// https://on.cypress.io/module-apiconstcypress=require('cypress')constresults=awaitcypress.run()// seems Cypress TS definition does not have "failures" and "message" properties// @ts-ignoreif(results.failures){// Cypress failed without even running the testsconsole.error('Problem running Cypress')// @ts-ignoreconsole.error(results.message)// @ts-ignoreprocess.exit(results.failures)}// results.totalFailed gives total number of failed testsif(results.totalFailed){process.exit(results.totalFailed)}
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#5337, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
If Cypress NPM module fails to find any specs it resolves with an object that is not typed right now
The text was updated successfully, but these errors were encountered: