Skip to content

Commit

Permalink
(deps): move the window.resizeTo polyfill to its own package
Browse files Browse the repository at this point in the history
- and import & use it here!
  • Loading branch information
agilgur5 committed Feb 10, 2022
1 parent 41d6d53 commit f3ee482
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
// configure enzyme w/ react adapter
'<rootDir>/test/config/configure-enzyme.js',
// polyfill window.resizeTo
'<rootDir>/test/config/window-resizeTo.js'
'window-resizeto/polyfill'
],
transform: {
// use babel-jest@23 for babel@6 support (https://github.com/facebook/jest/issues/8230#issuecomment-479470547)
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"standard": "^13.0.2",
"style-loader": "^0.13.1",
"webpack": "^1.12.2",
"webpack-dev-server": "^1.10.1"
"webpack-dev-server": "^1.10.1",
"window-resizeto": "0.0.2"
}
}
10 changes: 0 additions & 10 deletions test/config/window-resizeTo.js

This file was deleted.

0 comments on commit f3ee482

Please sign in to comment.