File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ require('whatwg-fetch');
22
22
// Object.assign() is commonly used with React.
23
23
// It will use the native implementation if it's present and isn't buggy.
24
24
Object . assign = require ( 'object-assign' ) ;
25
+
26
+ // In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet.
27
+ // We don't polyfill it in the browser--this is user's responsibility.
28
+ if ( process . env . NODE_ENV === 'test' ) {
29
+ require ( 'raf' ) . polyfill ( global ) ;
30
+ }
Original file line number Diff line number Diff line change 48
48
"postcss-flexbugs-fixes" : " 3.2.0" ,
49
49
"postcss-loader" : " 2.0.6" ,
50
50
"promise" : " 8.0.1" ,
51
+ "raf" : " 3.4.0" ,
51
52
"react-dev-utils" : " ^4.1.0" ,
52
53
"style-loader" : " 0.19.0" ,
53
54
"sw-precache-webpack-plugin" : " 0.11.4" ,
You can’t perform that action at this time.
0 commit comments