mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-12 02:00:06 -06:00
* fix: handle custom (default) integration folder for migration * Handle testFiles * Fix tests * Update test * Update typo * Trigger percy
Migration E2E Custom Integration with default value and test files
An e2e project with a custom integrationFolder named cypress/integration and custom testFiles. We will
update the config file to show the specPattern updated with the new default value (cypress/e2e) + the testFiles
The following migration steps will be used during this migration:
- automatic file rename
- manual file rename
- rename support
- 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.