Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot provide types cypress.run config options #7238

Closed
bahmutov opened this issue May 6, 2020 · 2 comments · Fixed by #7239
Closed

Cannot provide types cypress.run config options #7238

bahmutov opened this issue May 6, 2020 · 2 comments · Fixed by #7239
Labels
cli topic: typescript type: typings Issue related to Cypress types (for TypeScript)

Comments

@bahmutov
Copy link
Contributor

bahmutov commented May 6, 2020

Cypress v4.5.0

When writing TypeScript cypress.run(...) code using NPM module API, cannot type the config object

const config: Cypress.ConfigOptions = {

}
cypress.run({ config })

Screen Shot 2020-05-06 at 11 11 15 AM

Trying to use Partial in user-space still leads to problem because we have type duplication and divergence

const config: Partial<Cypress.ConfigOptions> = {

}
cypress.run({ config })

Screen Shot 2020-05-06 at 11 11 33 AM

@bahmutov bahmutov added topic: typescript type: typings Issue related to Cypress types (for TypeScript) cli labels May 6, 2020
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: work in progress stage: needs review The PR code is done & tested, needs review labels May 6, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 7, 2020

The code for this is done in cypress-io/cypress#7239, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 20, 2020

Released in 4.6.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.6.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli topic: typescript type: typings Issue related to Cypress types (for TypeScript)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant