Repository: cypress-io/cypress
File: packages/errors/src/errors.ts (TypeScript)

Code before:
        If you don't require screenshots or videos to be stored you can safely ignore this warning.`
  },
  EXPERIMENTAL_JIT_COMPILE_REMOVED: () => {
    return errTemplate`\
        The ${fmt.highlight(`experimentalJustInTimeCompile`)} configuration option was removed in ${fmt.cypressVersion(`14.0.0`)}.
        A new ${fmt.highlightSecondary(`justInTimeCompile`)} configuration option is available and is now ${fmt.highlightSecondary(`true`)} by default.
        You can safely remove this option from your config.`
  },
  EXPERIMENTAL_SESSION_AND_ORIGIN_REMOVED: () => {
    return errTemplate`\
        The ${fmt.highlight(`experimentalSessionAndOrigin`)} configuration option was removed in ${fmt.cypressVersion(`12.0.0`)}.

        You can safely remove this option from your config.

        https://on.cypress.io/session
        https://on.cypress.io/origin`
  },
  EXPERIMENTAL_SINGLE_TAB_RUN_MODE: () => {
    return errTemplate`\
        The ${fmt.highlight(`experimentalSingleTabRunMode`)} experiment is currently only supported for Component Testing.

        If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/single-tab-run-mode`
  },
  EXPERIMENTAL_STUDIO_REMOVED: () => {
    return errTemplate`\
        The ${fmt.highlight(`experimentalStudio`)} was removed in ${fmt.cypressVersion(`15.4.0`)}.
        
        You can safely remove this option from your config.`
  },
  EXPERIMENTAL_RUN_ALL_SPECS_E2E_ONLY: () => {
    const code = errPartial`
    {
      e2e: {
        experimentalRunAllSpecs: true
      },
    }`

    return errTemplate`\
        The ${fmt.highlight(`experimentalRunAllSpecs`)} experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: ${fmt.highlightSecondary(`e2e.experimentalRunAllSpecs`)}.

        ${fmt.code(code)}

        If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/run-all-specs`
  },
  EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY: () => {
    const code = errPartial`
    {
      e2e: {
        experimentalOriginDependencies: true
      },
    }`

Review comment (suggestion):
I think I would add that Studio is on by default here. We removed the feature at one point and there was a lot of backlash, so I don't want users to think it's gone as a feature.

```suggestion
        The ${fmt.highlight(`experimentalStudio`)} option was removed in ${fmt.cypressVersion(`15.4.0`)}.
        
        Cypress Studio is now available for all users.
```

Code after:
        experimentalRunAllSpecs: true
      },
    }`

    return errTemplate`\
        The ${fmt.highlight(`experimentalRunAllSpecs`)} experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: ${fmt.highlightSecondary(`e2e.experimentalRunAllSpecs`)}.

        ${fmt.code(code)}

        If you have feedback about the experiment, please join the discussion here: http://on.cypress.io/run-all-specs`
  },
  EXPERIMENTAL_ORIGIN_DEPENDENCIES_E2E_ONLY: () => {
    const code = errPartial`
    {
      e2e: {
        experimentalOriginDependencies: true
      },
    }`

    return errTemplate`\
        The ${fmt.highlight(`experimentalOriginDependencies`)} experiment is currently only supported for End to End Testing and must be configured as an e2e testing type property: ${fmt.highlightSecondary(`e2e.experimentalOriginDependencies`)}.

        ${fmt.code(code)}`
  },
  JIT_COMPONENT_TESTING: () => {
    return errTemplate`\
    The ${fmt.highlight(`justInTimeCompile`)} configuration is only supported for Component Testing.`
  },
  EXPERIMENTAL_SKIP_DOMAIN_INJECTION_REMOVED: () => {
    return errTemplate`\
      The ${fmt.highlight(`experimentalSkipDomainInjection`)} experiment is over. ${fmt.highlight('document.domain')} injection is now off by default.

      Read the migration guide for Cypress v14.0.0: https://on.cypress.io/migration-guide
    `
  },
  // TODO: link to docs on injectDocumentDomain
  INJECT_DOCUMENT_DOMAIN_DEPRECATION: () => {
    return errTemplate`\
      The ${fmt.highlight('injectDocumentDomain')} option is deprecated. Interactions with intra-test navigations to differing hostnames must now be wrapped in ${fmt.highlight('cy.origin')} commands, even if the hostname is a subdomain. This configuration option will be removed in a future version of Cypress.
    
      Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration
    `
  },
  INJECT_DOCUMENT_DOMAIN_E2E_ONLY: () => {
    // TODO: link to docs on injectDocumentDomain
    return errTemplate`\
      The ${fmt.highlight('injectDocumentDomain')} option is only available for E2E testing.

      Read the documentation for the injectDocumentDomain configuration option: https://on.cypress.io/inject-document-domain-configuration
    `
  },