Files
renovate[bot] 198d5e7e3a [deps] Platform: Update jest-environment-jsdom to v30 (#20845)
* [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>
2026-10-06 14:01:27 +02:00
..