-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create craco devServer preset #21952
Labels
CT
Issue related to component testing
Comments
Adding to Jun 21 sprint after it was highlighted by @conversaShawn |
any updates on this? |
👍 |
Would be nice to have craco supported like in previous versions.! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support for craco was cut from 10.0. Should be a fast follow but the priority is low.
The devServer for craco is located in
@cypress/react/plugins
. They are essentially webpack transforms that invoke@cypress/webpack-dev-server
with a modified webpack config so as to allow the frameworks webpack config to work with CT testing. These plugins/dev-servers are being internalized inside@cypress/webpack-dev-server
. Once the work for https://cypress-io.atlassian.net/browse/UNIFY-1267 is complete, we can lift this code from@cypress/react
and add them as transforms to@cypress/webpack-dev-server
. The template for how these will be wired up will be established, so it’s mostly a lift and shift.A new feature of
@cypress/webpack-dev-server
is the sourcing of webpack dependencies. These transforms will need to wired up such that they provide the information needed to sourcewebpack
andhtml-webpack-plugin
so as to ensure we are using the version supplied by the framework if applicable.All code pulled from
@cypress/react
should be converted to typescript and system-tests should be added so as to cover all supported versions of the framework. The available options forcraco
should be audited and be configurable via the “options” API.The old code inside
@cypress/react
should be left as is and will be removed in another issue.See the tech brief for config permutations.
Acceptance Criteria
@cypress/webpack-dev-server
Resources
Tech Brief
Open Pull Requests
Any PRs needed for review
┆Issue is synchronized with this Jira Task by Unito
┆author: Zach Williams
┆epic: CT Architecture
┆friendlyId: UNIFY-1549
┆priority: Low
┆sprint: Backlog
┆taskType: Task
The text was updated successfully, but these errors were encountered: