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
In a simple repo, like a fresh CRA, or small a-la-carte components as in 330+ cypress-react-component-test-examples v10.4.0 works as intented; there are no React 18 warnings in the console.
In mid sized or larger apps the React 18 console warnings may still persist.
Here are 2 apps where the issue is observed. Install and run any component test and view the console.
Repo 1: Kent Dodds' Epic React final app, with Cypress e2e and component tests:
git clone https://github.com/muratkeremozcan/bookshelf.git
cd bookshelf
npm i
npm run cy:open-ct
Repo 2: React Hooks in Action book with Cypress e2e and component tests
git clone https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress.git
cd react-hooks-in-action-with-cypress
yarn
yarn cy:open-ct
Current behavior
In a simple repo, like a fresh CRA, or small a-la-carte components as in 330+ cypress-react-component-test-examples v10.4.0 works as intented; there are no React 18 warnings in the console.
In mid sized or larger apps the React 18 console warnings may still persist.
Here are 2 apps where the issue is observed. Install and run any component test and view the console.
Repo 1: Kent Dodds' Epic React final app, with Cypress e2e and component tests:
git clone https://github.com/muratkeremozcan/bookshelf.git cd bookshelf npm i npm run cy:open-ct
Repo 2: React Hooks in Action book with Cypress e2e and component tests
Desired behavior
Regardless of the app size, there are no React 18 console warnings and we can use new React hooks in the tests.
Test code to reproduce
Linked above.
Cypress Version
10.4.0
Other
No response
The text was updated successfully, but these errors were encountered: