Skip to content

Cypress.config('baseUrl', 'someUrl.com') after v10 upgrade #22374

@jasoncarty

Description

@jasoncarty

Current behavior

After upgrading to Cypress version 10.1.0 the following is resulting in a Typescript linting error:

Cypress.config('baseUrl', 'http://localhost:1234')
// Argument of type '"baseUrl"' is not assignable to parameter of type 'keyof TestConfigOverrides'.ts(2345)

Desired behavior

This error is not shown

Test code to reproduce

Cypress.config('baseUrl', 'http://localhost:1234')
// Argument of type '"baseUrl"' is not assignable to parameter of type 'keyof TestConfigOverrides'.ts(2345)

Cypress Version

10.1.0

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    clitype: typingsIssue related to Cypress types (for TypeScript)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions