Skip to content
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

Docs incorrectly refer to starting server in plugins as anti-pattern #4416

Closed
BlueWinds opened this issue Apr 4, 2022 · 0 comments
Closed

Comments

@BlueWinds
Copy link
Contributor

Subject

guides

Description

In https://docs.cypress.io/guides/getting-started/testing-your-app#Step-1-Start-your-server and again in https://docs.cypress.io/guides/references/best-practices#Web-Servers, the docs refer to starting your app's server from inside Cypress as a bad idea.

It absolutely is a bad idea to do this from withing a test - do not use cy.exec() or cy.task(). But it is extremely common to start a development server from within the plugins file / cypress.config.js, and we should show people how to do it there with an example / short sample code.

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

No branches or pull requests

1 participant