chore(deps): coordinated bump jest 30.3→30.4 + jest-environment-jsdom 29→30 (#40206)

Co-authored-by: Claude <claude@anthropic.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Evan Rusackas
2026-05-18 21:35:19 -07:00
committed by GitHub
parent 4ceefb7e40
commit f98edc351e
22 changed files with 1979 additions and 6687 deletions

View File

@@ -582,16 +582,25 @@ describe('async actions', () => {
// eslint-disable-next-line no-restricted-globals -- TODO: Migrate from describe blocks
describe('runQuery with query params', () => {
const { location } = window;
let locationSpy: jest.SpyInstance;
beforeAll(() => {
delete (window as any).location;
(window as any).location = new URL('http://localhost/sqllab/?foo=bar');
const u = new URL('http://localhost/sqllab/?foo=bar');
locationSpy = jest.spyOn(window, 'location', 'get').mockReturnValue({
href: u.href,
pathname: u.pathname,
search: u.search,
hash: u.hash,
origin: u.origin,
host: u.host,
hostname: u.hostname,
port: u.port,
protocol: u.protocol,
} as Location);
});
afterAll(() => {
delete (window as any).location;
window.location = location;
locationSpy.mockRestore();
});
const makeRequest = () => {