Skip to content

Commit

Permalink
test environment changed to happydom to resolve leaflet testing error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasm0 committed May 23, 2024
1 parent 0b74d45 commit 999dda3
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 13 deletions.
107 changes: 96 additions & 11 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 @@ -47,8 +47,8 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-storybook": "^0.8.0",
"happy-dom": "^14.11.0",
"husky": "^9.0.11",
"jsdom": "^24.0.0",
"lint-staged": "^15.2.2",
"postcss": "^8.4.38",
"postcss-scss": "^4.0.9",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = defineConfig({
plugins: [react(), svgr()],
test: {
globals: true,
environment: 'jsdom',
environment: 'happy-dom',
setupFiles: ['./test/vitest-setup.ts'],
},
resolve: {
Expand Down

0 comments on commit 999dda3

Please sign in to comment.