Skip to content

Commit

Permalink
fix(tests): add resize-observer-polyfill when running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Jan 12, 2022
1 parent 7025bb9 commit 312e18d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -69,6 +69,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"resize-observer-polyfill": "^1.5.1",
"rollup": "^2.61.1",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-prettier": "^2.2.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/jest.setup.js
@@ -1,3 +1,5 @@
global.ResizeObserver = require('resize-observer-polyfill')

const { configure } = require('enzyme')
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')

Expand Down

0 comments on commit 312e18d

Please sign in to comment.