Skip to content

Missing host documentation #4410

Open
Open
@bartoszWesolowski

Description

@bartoszWesolowski

Hi,

I found YT video explaining how to configure hosts using cypress config file instrad of changing hosts on my local machine: https://www.youtube.com/watch?v=BrZbNCrrlx8

In summary config like this:

{
  "video": false,
  "screenshotsFolder": "build/cypress/screenshots",
  "viewportWidth": 1300,
  "viewportHeight": 800,
  "env": {
    "allure": true,
    "allureAttachRequests": true,
    "allureResultsPath": "build/allure-results"
  },
  "hosts": {
    "not.public.host.com": "191.1.191.111"
  }
}

will allow cypress to resolve not.public.host.com host in my tests.

I could not find this section in the documentation of cypress parameters https://docs.cypress.io/guides/references/configuration

Is this missing or maybe it should not be used as it might not work in next Cypress version? I am using Cypress 8.3.0

Cheers,
Bartek

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions