Files
cypress/system-tests/projects/migration-e2e-custom-supportFile-default-value/README.md
T
Alejandro Estrada e0e5a60ef6 fix: prevent adding default supportFile on migration (#21985)
* fix: prevent adding default supportFile on migration

* Update unit tests

Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
2022-06-01 09:26:18 -04:00

40 lines
1.1 KiB
Markdown

## Migration E2E Custom SupportFile with default value
An e2e project with a custom `supportFile` named `cypress/support/index.js`. It uses the default `supportFile`. We will not
update the config file to show the supportFile because it is the same as the default one
The following migration steps will be used during this migration:
- [x] automatic file rename
- [ ] manual file rename
- [x] rename support
- [x] update config file
- [ ] setup component testing
## Automatic Migration
Unless the user skips this step, after this step, the filesystem will be:
| Before | After|
|---|---|
| `src/basic.test.js` | `src/basic.cy.js` |
## Manual Files
This step is not used.
## Rename supportFile
The project has a default support file, `cypress/support/index.js`. We can rename it for them to `cypress/support/e2e.js`.
| Before | After|
|---|---|
| `cypress/support/index.js` | `cypress/support/e2e.js` |
## Update Config
We can migrate to the new `cypress.config.js`. The expected output is in `expected-cypress.config.js`. The main points are:
The expected output is in [`expected-cypress.config.js`](./expected-cypress.config.js).