Skip to content

Commit 5937bb3

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

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
@@ -75,6 +75,7 @@
7575
"standard": "^13.0.2",
7676
"style-loader": "^0.13.1",
7777
"webpack": "^1.12.2",
78-
"webpack-dev-server": "^1.10.1"
78+
"webpack-dev-server": "^1.10.1",
79+
"window-resizeto": "0.0.2"
7980
}
8081
}

test/config/window-resizeTo.js

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

0 commit comments

Comments
 (0)