We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04bd3f1 commit a7e777aCopy full SHA for a7e777a
packages/driver/cypress/e2e/dom/jquery.cy.ts
@@ -1,7 +1,8 @@
1
+/// <reference path="./jquery.d.ts" />
2
+
3
describe('src/dom/jquery', () => {
4
context('.isJquery', () => {
5
it('does not get confused when window contains jquery function', () => {
- // @ts-expect-error - Intentionally adding jquery property to test conflict detection
6
window.jquery = () => {}
7
8
expect(Cypress.dom.isJquery(window)).to.be.false
packages/driver/cypress/e2e/dom/jquery.d.ts
@@ -0,0 +1,7 @@
+declare global {
+ interface Window {
+ jquery: () => void | undefined | null
+ }
+}
+export {}
0 commit comments