]> source.dussan.org Git - gitea.git/commit
Switch to happy-dom for testing (#29948)
authorsilverwind <me@silverwind.io>
Thu, 21 Mar 2024 14:05:24 +0000 (15:05 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Mar 2024 14:05:24 +0000 (14:05 +0000)
commit82979588f4d8699097451ebb70c56a4bdd090c52
treec8d6e182410057e7602d96b5dd4e9bd6b21b45f0
parent62f8174aa2fae1481c7e17a6afcb731a5b178cd0
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.
package-lock.json
package.json
vitest.config.js
web_src/js/svg.js