Skip to content

chore: remove CommonJS comment from cypress/support/e2e.js #925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Feb 4, 2025

Issue

cypress/support/e2e.js no longer corresponds to the default scaffolded file contents.

Cypress dynamically builds support files when scaffolding based on the texts in https://github.com/cypress-io/cypress/blob/develop/packages/scaffold-config/src/supportFile.ts. For E2E tests the text is:

    // ***********************************************************
    // This example support/e2e.${language} is processed and
    // loaded automatically before your test files.
    //
    // This is a great place to put global configuration and
    // behavior that modifies Cypress.
    //
    // You can change the location of this file or turn off
    // automatically serving support files with the
    // 'supportFile' configuration option.
    //
    // You can read more here:
    // https://on.cypress.io/configuration
    // ***********************************************************

    // Import commands.js using ES2015 syntax:
    import './commands'
    // Alternatively you can use CommonJS syntax:
    // require('./commands')

Change

Remove the outdated comment text from cypress/support/e2e.js to align with Cypress 13.17.0 and later.

    // Alternatively you can use CommonJS syntax:
    // require('./commands')

@MikeMcC399 MikeMcC399 self-assigned this Feb 4, 2025
@cypress-app-bot
Copy link
Collaborator

@jennifer-shehane jennifer-shehane merged commit a8fee2e into cypress-io:master Feb 4, 2025
13 checks passed
@MikeMcC399 MikeMcC399 deleted the update/support-e2e branch February 4, 2025 14:51
@cypress-app-bot
Copy link
Collaborator

🎉 This PR is included in version 3.1.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants