From 82979588f4d8699097451ebb70c56a4bdd090c52 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 21 Mar 2024 15:05:24 +0100 Subject: Switch to happy-dom for testing (#29948) Use `happy-dom` again in vitest as it has caught up recently to `jsdom` in terms of features and it is a much more lightweight solution. I encountered [one bug](https://github.com/capricorn86/happy-dom/issues/1342), but it's an easy workaround until fixed. I regenerated the lockfile to get rid of the transitive dependencies so that's why the diff also has some upgrades in it. In total, this change removes 39 npm dependencies. --- web_src/js/svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web_src/js') diff --git a/web_src/js/svg.js b/web_src/js/svg.js index 471b5136bd..6ad06f599d 100644 --- a/web_src/js/svg.js +++ b/web_src/js/svg.js @@ -205,7 +205,7 @@ export const SvgIcon = { // make the classes work together const classes = []; - for (const cls of svgOuter.classList) { + for (const cls of svgOuter.classList.values()) { classes.push(cls); } // TODO: drop the `className/class-name` prop in the future, only use "class" prop -- cgit v1.2.3