mirror of
https://github.com/vector-im/element-call.git
synced 2026-11-28 10:01:09 +08:00
Bump jsdom and remove outdated overrides
This commit is contained in:
+1
-1
@@ -101,7 +101,7 @@
|
||||
"i18next": "^26.0.0",
|
||||
"i18next-browser-languagedetector": "^8.0.0",
|
||||
"i18next-cli": "^1.61.0",
|
||||
"jsdom": "^26.0.0",
|
||||
"jsdom": "^31.0.0",
|
||||
"knip": "^5.86.0",
|
||||
"livekit-client": "^2.18.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
|
||||
Generated
+359
-418
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -28,8 +28,8 @@ overrides:
|
||||
# - https://github.com/advisories/GHSA-7r86-cg39-jmmj
|
||||
# - https://github.com/advisories/GHSA-23c5-xmqv-rm74
|
||||
"minimatch": "^11.0.0"
|
||||
# Security fix: https://github.com/element-hq/element-call/security/dependabot/109
|
||||
"glob": "^10.5.0"
|
||||
# The v8 line is deprecated.
|
||||
"eslint": "^9.0.0"
|
||||
# Security fix: https://github.com/advisories/GHSA-6pq8-jhm2-2vcw
|
||||
"qs": ">=6.16.1"
|
||||
# Security fix: https://github.com/advisories/GHSA-2883-xcg3-v3hh
|
||||
|
||||
@@ -61,7 +61,7 @@ exports[`the modal renders as a drawer in mobile viewports 1`] = `
|
||||
/>
|
||||
<h2
|
||||
id="radix-_r_a_"
|
||||
style="position: absolute; border: 0px; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; word-wrap: normal;"
|
||||
style="position: absolute; border: 0px; width: 1px; height: 1px; padding: 0px; margin: -1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); white-space: nowrap; overflow-wrap: normal;"
|
||||
>
|
||||
My modal
|
||||
</h2>
|
||||
|
||||
@@ -291,7 +291,7 @@ describe("MediaMuteAndSwitchButton", () => {
|
||||
// After clicking, plannedSelection="mic2" but selectedOption is still "mic1",
|
||||
// so mic2 should be in an activating state
|
||||
screen.getByRole("menuitemradio", {
|
||||
name: "Microphone 2 Activating…",
|
||||
name: /^Microphone 2\s*Activating…$/,
|
||||
checked: false,
|
||||
});
|
||||
|
||||
|
||||
@@ -108,7 +108,6 @@ exports[`InCallView > rendering > renders 1`] = `
|
||||
</div>
|
||||
<div
|
||||
class="_fixedGrid_4e7ff8 _grid_b0d1cd"
|
||||
style="inset-block-start: NaNpx;"
|
||||
>
|
||||
<div />
|
||||
</div>
|
||||
|
||||
@@ -53,6 +53,13 @@ window.matchMedia = global.matchMedia = (): MediaQueryList =>
|
||||
removeEventListener: () => {},
|
||||
}) as Partial<MediaQueryList> as MediaQueryList;
|
||||
|
||||
// Disable animations. jsdom computes `animation-name` from our stylesheets but
|
||||
// never runs an animation, so anything that waits for `animationend` before
|
||||
// unmounting (Radix dialogs, for one) would stay mounted forever.
|
||||
const noAnimations = document.createElement("style");
|
||||
noAnimations.textContent = "* { animation: none !important; }";
|
||||
document.head.appendChild(noAnimations);
|
||||
|
||||
// jsdom does no layout and has no ResizeObserver. The call view observes the
|
||||
// size of its root element; this one reports nothing, so that element stays at
|
||||
// whatever size jsdom says it is unless a test says otherwise.
|
||||
|
||||
Reference in New Issue
Block a user