Cypress config with monorepo and rewired cra
See original GitHub issueCurrent behavior
I have a lerna monorepo with 2 cra’s in my repo, where is one a customized by cra-customize and react-app-rewired.
package-a
includes 2 tests.
One is cypress, second is @testing-library/react
I feel like config-overrides.js are not wotking with cypess, that’s why test in red. Can i somehow override the wepback configuration from cypress to same way? Maybe new cypress.config.ts can help me?
Desired behavior
Both tests green.
Test code to reproduce
https://github.com/MohoiNad/cypress-issue
Cypress Version
10.2.0
Other
I have some problems with babel if i am using customize-cra config,
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:9 (3 by maintainers)
Top Results From Across the Web
@monorepo-template/cypress-coverage-config-override - npm
Cypress coverage config-override is a react-app-rewired config override that enables coverage for Cypress tests.
Read more >Utilizing Cypress Testing in a Multi-App Monorepo
Getting it set up for an app is pretty straightforward, and you can be off and writing tests in a matter of minutes....
Read more >JS/TS Tooling Overview
Zero-configuration presets for React, Preact, Vue, web and Node.js ... Custom Cypress commands and utilities to avoid testing implementation details.
Read more >Unanswered 'react-app-rewired' Questions - Stack Overflow
I am trying to set up monorepo to run all of its Jest tests at once. In each package, I'm using react-app-rewired to...
Read more >cypress-react-unit-test - npm package - Snyk
It will try to determine which framework or bundling tool you are using and give you instructions on right configuration. cypress-react-unit-test init. Or ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MohoiNad hi, have you had a chance to solve this issue?
@this-miguel, can you confirm if the suggested steps from @marktnoonan help at all?