guides/cy-prompt-development.md
cy.prompt DevelopmentIn production, the code used to facilitate the prompt command will be retrieved from the Cloud.
To run against locally developed cy.prompt:
cypress-services repo
yarn && yarn allyarn watch in app/packages/cy-promptCYPRESS_INTERNAL_ENV=<environment> (e.g. staging or production if you want to hit those deployments of cypress-services or development if you want to hit a locally running version of cypress-services)CYPRESS_LOCAL_CY_PROMPT_PATH to the path to the cypress-services/app/packages/cy-prompt/dist/development directoryTo run against a deployed version of cy.prompt:
CYPRESS_INTERNAL_ENV=<environment> (e.g. staging or production if you want to hit those deployments of cypress-services or development if you want to hit a locally running version of cypress-services)Regardless of running against local or deployed cy.prompt:
cypress repo
yarnyarn cypress:openTo run against a deployed version of cy.prompt:
CYPRESS_INTERNAL_ENV=<environment> (e.g. staging or production if you want to hit those deployments of cypress-services or development if you want to hit a locally running version of cypress-services)The prompt bundle provides the types for the app, driver, and server interfaces that are used within the Cypress code. To incorporate the types into the code base, run:
yarn gulp downloadPromptTypes
or to reference a local cypress_services repo:
CYPRESS_LOCAL_CY_PROMPT_PATH=<path-to-cypress-services/app/cy-prompt/dist/development-directory> yarn gulp downloadPromptTypes
The code that supports cloud cy.prompt and lives in the cypress monorepo is unit, integration, and e2e tested in a similar fashion to the rest of the code in the repo. See the contributing guide for more specifics.
The code that supports cloud cy.prompt and lives in the cypress-services monorepo has unit tests that live alongside the code in that monorepo.