This repo is just CRA 5 with a minimal Cypress 10 install. There is a simple component test that mounts the app.
On running the test, we get a crash on MacBook Pro, Mac Monterey 12.4, Intel Core i9.
To reproduce:
git clone https://github.com/muratkeremozcan/cra5-cy10-test.git
cd cra5-cy10-test
nvm use
yarn install
yarn cy:open-ct
Works in CI. Works if we downgrade react-scripts to v4, however that is a blocker for component test code coverage. More data here. TL, DR; with react-scripts 5, we cannot configure webpack (as in this commit) so that we can get coverage from component tests.
Workaround:
If you run into the problem, the solution is here; use any other port than 8080 for the dev server.