Skip to content

Commit

Permalink
Replace JSDom with Happy DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Feb 14, 2024
1 parent 401f670 commit 5c501ff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 323 deletions.
2 changes: 1 addition & 1 deletion packages/react-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"cpy-cli": "^5.0.0",
"eslint": "^8.26.0",
"eslint-config-wojtekmaj": "^0.9.0",
"jsdom": "^24.0.0",
"happy-dom": "^13.3.0",
"nodemon": "^3.0.0",
"prettier": "^3.0.0",
"react": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-pdf/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
environment: 'jsdom',
environment: 'happy-dom',
exclude: [...configDefaults.exclude, 'src/index.test.ts'],
pool: 'forks',
setupFiles: 'vitest.setup.ts',
Expand Down

0 comments on commit 5c501ff

Please sign in to comment.