Using Custom jQuery Types #27272
Unanswered
jestapinski
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
We use a more updated version of @types/jquery in our project than Cypress ships with in its /types folder (in the dist). This causes some issues when we try to add
mount
to the Cypress namespace as importing @cypress/react brings in Cypress's local types for jquery as we also bring in these types.This is mainly an issue since we inline component tests with source code. We could
/// <reference types="cypress" />
at the top of each test file as well, but that still wouldn't bring inmount
anyway.Would it be possible to:
@types/jquery
.Beta Was this translation helpful? Give feedback.
All reactions