Closed AtofStryker closed 2 weeks ago
Passed #58281
•
b4aeb278b2: breaking: remove support for create react app for component testing as it is no ...
Project |
cypress
|
Branch Review |
breaking/remove_create_react_app
|
Run status |
Passed #58281
|
Run duration | 09m 59s |
Commit |
b4aeb278b2: breaking: remove support for create react app for component testing as it is no ...
|
Committer | AtofStryker |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
1
|
Skipped |
0
|
Passing |
667
|
View all changes introduced in this branch ↗︎ |
UI Coverage
38.03%
|
|
---|---|
Untested elements |
132
|
Tested elements |
81
|
Accessibility
92.06%
|
|
---|---|
Failed rules |
3 critical
7 serious
1 moderate
1 minor
|
Failed elements |
540
|
Additional details
Create React App is de-facto abandoned and unsupported. Because of this, Cypress has chosen to remove CRA support for Component Testing in Cypress 14. This means that
create-react-app
users will need to use eitherwebpack
orvite
to bundler their component tests.webpack
support is supported withcreate-react-app
if a user choses to eject their app.eject
?If starting cypress without doing any migration, this error will throw in the cypress config
However, users can migrate via
npm run eject
withcreate-react-app
, which will generate a webpack config. If users change their config from:to
this does work
It does work with new projects as react is selected and webpack is detected. However, a user will need to
eject
the application and point to the webpack config as shown above. Otherwise, the config will throw an error which is expectedSteps to test
Testing against prepublished binary to verify migration steps work as expected
How has the user experience changed?
PR Tasks
cypress-documentation
? https://github.com/cypress-io/cypress-documentation/pull/5987type definitions
?