Skip to content

Cypress.env's usage is not clear in the documentation #82

@BrunoBernardino

Description

@BrunoBernardino

The example at https://github.com/cypress-io/cypress/wiki/env#no-arguments-usage shows the file like:

// cypress.json
{
  "env": {
    "foo": "bar",
    "baz": "quux"
  }
}

But that doesn't work. It should, in fact, be:

// cypress.json
{
  "cypress": {
    "env": {
      "foo": "bar",
      "baz": "quux"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions