Skip to content

Commit 170b324

Browse files
committed
⚙️ refactor(tests): Use happy-dom instead of jsdom
1 parent 2cd10ee commit 170b324

File tree

3 files changed

+57
-7
lines changed

3 files changed

+57
-7
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
"eslint-plugin-react": "^7.37.5",
138138
"eslint-plugin-react-hooks": "7.0.1",
139139
"eslint-plugin-testing-library": "^7.15.4",
140+
"happy-dom": "^20.3.0",
140141
"jest-leak-detector": "^30.2.0",
141142
"jsdom": "^27.4.0",
142143
"json": "^11.0.0",
@@ -168,4 +169,4 @@
168169
"optional": true
169170
}
170171
}
171-
}
172+
}

pnpm-lock.yaml

Lines changed: 54 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vitest.config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default defineConfig({
2020
reportsDirectory: './coverage/',
2121
provider: 'v8',
2222
},
23-
environment: 'jsdom',
23+
environment: 'happy-dom',
2424
dir: 'tests',
2525
reporters: process.env.GITHUB_ACTIONS
2626
? ['default', 'github-actions']

0 commit comments

Comments
 (0)