Skip to content

Commit

Permalink
Fix JQuery type in tests (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbraak authored Oct 26, 2024
1 parent 11e2940 commit 850ef0d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/test/support/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,12 @@ import jQuery from "jquery";

import "./jqTreeMatchers";

(window as any).$ = jQuery; // eslint-disable-line @typescript-eslint/no-unsafe-member-access
(window as any).jQuery = jQuery; // eslint-disable-line @typescript-eslint/no-unsafe-member-access
declare global {
interface Window {
$: JQueryStatic;
jQuery: JQueryStatic;
}
}

window.$ = jQuery;
window.jQuery = jQuery;

0 comments on commit 850ef0d

Please sign in to comment.