diff options
author | silverwind <me@silverwind.io> | 2024-03-21 15:05:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 14:05:24 +0000 |
commit | 82979588f4d8699097451ebb70c56a4bdd090c52 (patch) | |
tree | c8d6e182410057e7602d96b5dd4e9bd6b21b45f0 /vitest.config.js | |
parent | 62f8174aa2fae1481c7e17a6afcb731a5b178cd0 (diff) | |
download | gitea-82979588f4d8699097451ebb70c56a4bdd090c52.tar.gz gitea-82979588f4d8699097451ebb70c56a4bdd090c52.zip |
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.
Diffstat (limited to 'vitest.config.js')
-rw-r--r-- | vitest.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vitest.config.js b/vitest.config.js index be6c0eadfa..ea0fafeee8 100644 --- a/vitest.config.js +++ b/vitest.config.js @@ -6,7 +6,7 @@ export default defineConfig({ test: { include: ['web_src/**/*.test.js'], setupFiles: ['web_src/js/vitest.setup.js'], - environment: 'jsdom', + environment: 'happy-dom', testTimeout: 20000, open: false, allowOnly: true, |