Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 2e11fb0

Browse files
committed
add raf polyfill to satisfy react 16
1 parent 1436c46 commit 2e11fb0

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

jest.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
testRegex: "(/__tests__/.*|(\\.|/|-)(test|spec))\\.jsx?$",
3+
setupTestFrameworkScriptFile: "./setup-jest.js",
34
};

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"postcss-loader": "^1.1.1",
7777
"prettier": "^1.7.0",
7878
"prismjs": "^1.6.0",
79+
"raf": "^3.4.0",
7980
"react": "16.2.x",
8081
"react-addons-pure-render-mixin": "^15.4.1",
8182
"react-addons-test-utils": "^15.4.1",

setup-jest.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require("raf/polyfill");

yarn.lock

+6
Original file line numberDiff line numberDiff line change
@@ -5228,6 +5228,12 @@ [email protected], querystring@^0.2.0:
52285228
version "0.2.0"
52295229
resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620"
52305230

5231+
raf@^3.4.0:
5232+
version "3.4.0"
5233+
resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.0.tgz#a28876881b4bc2ca9117d4138163ddb80f781575"
5234+
dependencies:
5235+
performance-now "^2.1.0"
5236+
52315237
ramda@^0.24.1:
52325238
version "0.24.1"
52335239
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.24.1.tgz#c3b7755197f35b8dc3502228262c4c91ddb6b857"

0 commit comments

Comments
 (0)