Skip to content

Commit

Permalink
test: use happy-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Nov 30, 2023
1 parent 7a4df52 commit 4c6ea16
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 397 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.1",
"@types/eslint": "^8.44.7",
"@types/jsdom": "^21",
"@types/lodash.shuffle": "^4.2.9",
"@types/prettier": "^3.0.0",
"@types/react": "^18",
Expand All @@ -79,11 +78,10 @@
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-prettier": "5.0.1",
"form-atoms": "^3.2.0",
"happy-dom": "^8.9.0",
"happy-dom": "^12.10.3",
"jotai": "2.6.0",
"jotai-devtools": "0.7.0",
"jotai-effect": "0.2.3",
"jsdom": "^21.1.0",
"lodash.shuffle": "^4.2.0",
"prettier": "3.1.0",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: "jsdom",
environment: "happy-dom",
setupFiles: ["./setup.ts"],
coverage: {
provider: "v8",
Expand Down
Loading

0 comments on commit 4c6ea16

Please sign in to comment.