mirror of
https://github.com/bitwarden/clients.git
synced 2026-11-16 07:03:29 +00:00
* [deps] Platform: Update jest-environment-jsdom to v30
* Fix jsdom 26 test compatibility for jest-environment-jsdom v30
jsdom 26 defines its [LegacyUnforgeable] globals (window, document,
location, top) as non-configurable, so tests that replace them with
Object.defineProperty or jest.spyOn now throw "Cannot redefine property".
Add a jsdom test environment composed via @jest/environment-jsdom-abstract
that relaxes only those four globals to configurable, and use it for all
Angular-based projects. Also drop two assertions that only observed jsdom's
internal getComputedStyle-to-element.style delegation, and refresh snapshots
for jsdom 26's quoted url("...") CSS serialization.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Andreas Coroiu <andreas.coroiu@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>