Commit 1f5d169
authored
fix: Re-enable shadow block converter test (#2529)
## The basics
- [x] I [validated my changes](https://developers.google.com/blockly/guides/contribute/samples#making_and_verifying_a_change)
## 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.1 parent 29b5a0d commit 1f5d169
1 file changed
Lines changed: 3 additions & 1 deletion
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments