Skip to content

Commit

Permalink
test: replace jsdom with happy-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Sep 5, 2024
1 parent f52c448 commit 0d02a5a
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 696 deletions.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Config } from 'jest'

const config: Config = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testEnvironment: '@happy-dom/jest-environment',
coverageDirectory: 'coverage',
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"devDependencies": {
"@eslint/js": "^9.x",
"@happy-dom/jest-environment": "^15.x",
"@testing-library/react": "^16.x",
"@types/eslint": "^9.x",
"@types/jest": "^29.x",
Expand All @@ -49,12 +50,12 @@
"eslint-plugin-prettier": "^5.x",
"globals": "^15.9.0",
"jest": "^29.x",
"jest-environment-jsdom": "^29.x",
"prettier": "^3.x",
"react": "^18.x",
"react-dom": "^18.x",
"rimraf": "^6.x",
"ts-jest": "^29.x",
"ts-node": "^10.x",
"typescript": "^5.5.4",
"typescript-eslint": "^8.x",
"veact": "latest"
Expand Down
Loading

0 comments on commit 0d02a5a

Please sign in to comment.