Skip to content

Commit

Permalink
backport fixes from PR#10452 missing in merge e839b63
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Oct 16, 2024
1 parent 108893c commit b4e55c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FetchMockStatic } from 'fetch-mock';

declare global {
declare var iD: typeof import('.');
declare var d3: import('d3');
declare var d3: typeof import('d3');
declare var fetchMock: FetchMockStatic;
declare var before: typeof beforeEach;
declare var after: typeof afterEach;
Expand Down
3 changes: 2 additions & 1 deletion test/spec_helpers.mts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,11 @@ cached.deprecated = [];
// Initializing `coreContext` initializes `_uploader`, which tries loading:
cached.discarded = {};

// @ts-expect-error
window.d3 = iD.d3; // Remove this if we can avoid exporting all of d3.js

// @ts-expect-error
delete window.PointerEvent; // force the browser to use mouse events
delete window.PointerEvent; // force the browser to use mouse events

// some sticky fallbacks
const capabilities = `<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit b4e55c2

Please sign in to comment.