Skip to content

Set CYPRESS=true as env var in child processes where Cypress runs user code in Node #18805

@jennifer-shehane

Description

@jennifer-shehane

What would you like?

We'd like a way to tell that any Node code is running within Cypress. This way we could detect we're running in Cypress by looking for process.env.CYPRESS

Why is this needed?

Someone mentioned wanting the ability to set different babel config when run within Cypress specifically.

Other

No response

Metadata

Metadata

Labels

type: featureNew feature that does not currently exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions