Current behavior
cy.exec() yields a response of type Exec, defined here: https://github.com/cypress-io/cypress/blob/0dd24273cd21b79085bd00b7823846073dd81363/cli/types/cypress.d.ts#L6478C1-L6483C1
Exec has a property named code of type number. This was renamed to exitCode in v15: https://docs.cypress.io/app/references/migration-guide#cyexec-code-property-renamed
Desired behavior
Exec property code should be renamed to exitCode
Test code to reproduce
cy.exec('echo 0').then(({ exitCode }) => { cy.log(`${exitCode}`) });
Cypress Version
15.0.0
Debug Logs
Other
No response