-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Upgrading Cypress from 4.0.1 to 4.3.0 results in conflicting jquery typedefs #7063
Comments
Confirmed. I created a simple project like below: // package.json
{
"name": "7063",
"dependencies": {
"@types/jquery": "2.0.54",
"cypress": "4.3.0",
"jquery": "2.2.4",
"typescript": "^3.8.3"
}
} // index.ts
/// <reference types="cypress" />
import $ from 'jquery'
context('Actions', () => {
it('.type() - type into a DOM element', () => {
cy.visit('https://example.cypress.io/commands/actions')
$('.x').append('1234')
})
}) Compile index.ts with:
Found 61 errors. |
I've investigated the problem and concluded that I need more information. With my current setting, the type clash happen even when Cypress is 1.2.0. Because from the beginning (#1044, #1048), This repo is the test repo I used. I tested types with Can you provide me a repo with codes that works before 4.3.0 but fails after it and how to test it? |
it does work again... thanks for the note! |
Current behavior:
Upgrading Cypress from 4.01 to 4.3.0 results in conflicting jquery typedefs since jquery puts a bunch of stuff on the global scope.
Desired behavior:
No conflicting typedefs
Test code to reproduce
Have a product using jquery 2
Upgrade from cypress 4.0.1 to 4.3
Observe
yarn.lock
:Versions
4.0.1, 4.3.0
The text was updated successfully, but these errors were encountered: