Skip to content

Commit

Permalink
Use happy-dom over jsdom
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Dec 14, 2023
1 parent 7892722 commit 2be8f01
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 15 deletions.
130 changes: 117 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@
"eslint-plugin-unused-imports": "^3.0.0",
"execa": "^8.0.1",
"fast-glob": "^3.2.12",
"happy-dom": "^12.10.3",
"http-proxy-middleware": "^2.0.6",
"jsdom": "^22.1.0",
"prettier": "^3.0.0",
"raw-body": "^2.5.2",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig(async ({ mode }) => {
},
test: {
setupFiles: ['./test/fixtures/api.ts'],
environment: 'jsdom',
environment: 'happy-dom',
deps: {
interopDefault: false,
web: {
Expand Down

0 comments on commit 2be8f01

Please sign in to comment.