Skip to content

Commit f3ee482

Browse files
committed
(deps): move the window.resizeTo polyfill to its own package
- and import & use it here!
1 parent 41d6d53 commit f3ee482

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
// configure enzyme w/ react adapter
66
'<rootDir>/test/config/configure-enzyme.js',
77
// polyfill window.resizeTo
8-
'<rootDir>/test/config/window-resizeTo.js'
8+
'window-resizeto/polyfill'
99
],
1010
transform: {
1111
// use babel-jest@23 for babel@6 support (https://github.com/facebook/jest/issues/8230#issuecomment-479470547)

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
"standard": "^13.0.2",
7979
"style-loader": "^0.13.1",
8080
"webpack": "^1.12.2",
81-
"webpack-dev-server": "^1.10.1"
81+
"webpack-dev-server": "^1.10.1",
82+
"window-resizeto": "0.0.2"
8283
}
8384
}

test/config/window-resizeTo.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)