From e103ec500630bd1aefb4ad914e5e916cb28e7f3f Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Tue, 4 Nov 2025 09:55:28 -0500 Subject: [PATCH 1/2] misc: The exec type was updated from code to exitCode --- cli/types/cypress.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 7f049a8dc3f..6ea19b1cead 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -6476,7 +6476,7 @@ declare namespace Cypress { } interface Exec { - code: number + exitCode: number stdout: string stderr: string } From f0b741e4f7358134e2b6e849b880b70fd22d9e23 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Tue, 4 Nov 2025 09:57:32 -0500 Subject: [PATCH 2/2] add changelog entry --- cli/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index f7b27a767f4..f370b22b077 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -25,6 +25,7 @@ _Released 11/4/2025 (PENDING)_ - WebKit now prefers a cookie's fully qualified `domain` when requesting a cookie value via [`cy.getCookie()`](https://docs.cypress.io/api/commands/getcookie). If none are found, the cookie's apex domain will be used as a fallback. Addresses [#29954](https://github.com/cypress-io/cypress/issues/29954), [#29973](https://github.com/cypress-io/cypress/issues/29973) and [#30392](https://github.com/cypress-io/cypress/issues/30392). Addressed in [#32852](https://github.com/cypress-io/cypress/pull/32852). - The 'Next' tooltip style was updated. Addressed in [#32866](https://github.com/cypress-io/cypress/pull/32866). - Make test name header sticky in studio mode and in the tests list. Addresses [#32591](https://github.com/cypress-io/cypress/issues/32591). Addressed in [#32840](https://github.com/cypress-io/cypress/pull/32840) +- The `cy.exec()` type now reflects the correct yielded response type of `exitCode`. Addresses [#32875](https://github.com/cypress-io/cypress/issues/32875). Addressed in [#32885](https://github.com/cypress-io/cypress/pull/32885). **Dependency Updates:**