Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Conversation

@bahmutov
Copy link
Contributor

@bahmutov bahmutov commented May 8, 2020

When using react-scripts you can place Cypress component specs outside the src folder and they would still be transpiled using react-scripts settings.

@bahmutov bahmutov changed the title Add react scripts diff folder Add component testing folder to react-scripts Babel transpile list May 8, 2020
@bahmutov bahmutov marked this pull request as ready for review May 8, 2020 17:11
@bahmutov bahmutov changed the title Add component testing folder to react-scripts Babel transpile list feat: add component testing folder to react-scripts Babel transpile list May 8, 2020
@bahmutov bahmutov merged commit 28a929d into master May 8, 2020
@bahmutov bahmutov deleted the add-react-scripts-diff-folder branch May 8, 2020 17:11
@bahmutov
Copy link
Contributor Author

bahmutov commented May 8, 2020

🎉 This PR is included in version 4.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

dmtrKovalenko pushed a commit to cypress-io/cypress that referenced this pull request Oct 1, 2020
…ist (cypress-io/cypress-react-unit-test#186)

If you use `react-scripts`, you can have your component tests in `src` or in any other folder like `cypress/component` and they will be transpiled using the same settings.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using the built in cypress typescript support - component tests results in webpack error

2 participants