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

Commit a237975

Browse files
committed
add a note about src folder and react-scripts
1 parent 103702c commit a237975

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ module.exports = (on, config) => {
6464

6565
See [Recipes](./docs/recipes.md) for more examples.
6666

67+
**⚠️ Note:** when using `react-scripts` you must place component specs in the `src` folder too, otherwise they won't be transpiled correctly.
68+
6769
3. ⚠️ Turn the experimental component support on in your `cypress.json`. You can also specify where component spec files are located. For example, to have them located in `src` folder use:
6870

6971
```json

docs/recipes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ See example repo [bahmutov/try-cra-with-unit-test](https://github.com/bahmutov/t
2929

3030
**Tip:** `plugins/react-scripts` is just loading `plugins/cra-v3`.
3131

32+
**⚠️ Note:** when using `react-scripts` you must place component specs in the `src` folder too, otherwise they won't be transpiled correctly.
33+
3234
## Your webpack config
3335

3436
If you have your own webpack config, you can use included plugins file to load it. You can pass the webpack config file name (with respect to the root folder where `cypress.json` file sits) via plugins file or via an `env` variable in `cypress.json`

0 commit comments

Comments
 (0)