You get a warning and no autocompletion. The code runs just fine.
Problem description:
When using the cy.get().should()-syntax in Cypress, you get autocompletion for all the "chainer" variants (as in should("chainer")). Using e.g cy.findByText().should() from CTL will not only give you a linter warning, but also no autocompletion.
Suggested solution:
If there is an existing solution to this issue, please add it to the readme. Alternatively: perhaps it would be possible to add the Typescript definitions for each should-variant as they have done for the original cy.get().should()-variants?
Environment:
cypress-testing-library
version: 5.3.0node
version: 12.13.1npm
(oryarn
) version: 6.12.1typescript
version: 3.7.4Intellij Ultimate
version: 2019.3.3Relevant code or config:
What you did:
What happened:
You get a warning and no autocompletion. The code runs just fine.
Problem description:
When using the
cy.get().should()
-syntax in Cypress, you get autocompletion for all the "chainer" variants (as inshould("chainer")
). Using e.gcy.findByText().should()
from CTL will not only give you a linter warning, but also no autocompletion.Suggested solution:
If there is an existing solution to this issue, please add it to the readme. Alternatively: perhaps it would be possible to add the Typescript definitions for each
should
-variant as they have done for the originalcy.get().should()
-variants?