(query: string)
| 451 | // `MediaQuery` (which `@xyflow/svelte`'s store constructs eagerly) calls it |
| 452 | // the moment a canvas mounts. Replace it outright rather than guarding. |
| 453 | const media = (query: string) => ({ |
| 454 | media: query, |
| 455 | matches: false, |
| 456 | onchange: null, |
| 457 | addEventListener() {}, |
| 458 | removeEventListener() {}, |
| 459 | addListener() {}, |
| 460 | removeListener() {}, |
| 461 | dispatchEvent: () => false, |
| 462 | }); |
| 463 | Object.defineProperty(window, 'matchMedia', { configurable: true, writable: true, value: media }); |
| 464 | globals.matchMedia = media; |
| 465 | if (!Element.prototype.scrollIntoView) Element.prototype.scrollIntoView = () => {}; |
nothing calls this directly
no outgoing calls
no test coverage detected