question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress config with monorepo and rewired cra

See original GitHub issue

Current 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:open
  • Created a year ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nazartsyhanyukcommented, Oct 12, 2022

@MohoiNad hi, have you had a chance to solve this issue?

0reactions
rockindahizzycommented, Nov 30, 2022

@this-miguel, can you confirm if the suggested steps from @marktnoonan help at all?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found