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

Commit 5463b26

Browse files
authored
Merge pull request #48 from withspectrum/fixing-code-blocks
react 16 dependency and raf
2 parents 313a97e + 7c26fc5 commit 5463b26

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

jest.config.js

Lines changed: 1 addition & 0 deletions
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

Lines changed: 3 additions & 2 deletions
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",
@@ -94,8 +95,8 @@
9495
},
9596
"peerDependencies": {
9697
"draft-js-plugins-editor": "~2.0.0-rc.1 || 2.0.0-rc2 || 2.0.0-rc1 || 2.0.0-beta12",
97-
"react": "^15.0.0",
98-
"react-dom": "^15.0.0"
98+
"react": "^15.0.0 || ^16.0.0",
99+
"react-dom": "^15.0.0 || ^16.0.0"
99100
},
100101
"contributors": [
101102
"Atsushi Nagase <a@ngs.io>"

setup-jest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require("raf/polyfill");

yarn.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5228,6 +5228,12 @@ querystring@0.2.0, 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)