Skip to content

Conversation

@BenHenning
Copy link
Collaborator

@BenHenning BenHenning commented May 15, 2025

The basics

The details

Resolves

Fixes #2525

Proposed Changes

This re-enables the shadow block converter test disabled in #2524.

Reason for Changes

It's preferable to not keep tests disabled as it's easy to forget about them (and having them disabled increases the risk of discovering regressions being delayed or never noticed).

This particular fix is discussed in #2528. It's a bit complicated exactly how the global namespace is managed via jsdom-global, but essentially SVGElement (made available to Node.js via jsdom) is not being automatically bound to the global namespace and this works around the issue.

Test Coverage

N/A -- This is a test-only change.

Documentation

No documentation changes are needed.

Additional Information

This is a slightly ugly workaround, but it seems viable for the medium-term while #2528 is considered.

This uses a workaround to ensure SVGElement is actually present in the
global namespace when running these tests.
@BenHenning BenHenning changed the base branch from master to rc/v12.0.0 May 15, 2025 18:21
@BenHenning BenHenning marked this pull request as ready for review May 15, 2025 18:27
@BenHenning BenHenning requested a review from a team as a code owner May 15, 2025 18:27
@BenHenning BenHenning requested review from RoboErikG and removed request for a team May 15, 2025 18:27
@BenHenning BenHenning requested review from rachel-fenichel and removed request for RoboErikG May 15, 2025 18:27
@BenHenning BenHenning merged commit 1f5d169 into RaspberryPiFoundation:rc/v12.0.0 May 15, 2025
11 checks passed
@BenHenning BenHenning deleted the fix-shadow-block-converter-test branch May 15, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix shadow-block-converter tests

3 participants