Skip to content

Commit

Permalink
Move .babelrc to babel.config.js to make it work with Jest and upgrad…
Browse files Browse the repository at this point in the history
…e react-test-renderer
  • Loading branch information
OzzieOrca committed Oct 23, 2018
1 parent f43b28e commit cc5e3b3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 22 deletions.
11 changes: 0 additions & 11 deletions .babelrc

This file was deleted.

11 changes: 11 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: [
[
'@babel/plugin-proposal-decorators',
{
legacy: true,
},
],
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"prettier": "^1.14.3",
"pretty-quick": "^1.8.0",
"react-dom": "^16.5.2",
"react-test-renderer": "^16.5.2",
"react-test-renderer": "16.6.0-alpha.8af6728",
"redux-mock-store": "^1.5.3"
},
"jest": {
Expand Down
25 changes: 15 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7440,6 +7440,11 @@ react-is@^16.3.2, react-is@^16.5.2:
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.5.2.tgz#e2a7b7c3f5d48062eb769fcb123505eb928722e3"
integrity sha512-hSl7E6l25GTjNEZATqZIuWOgSnpXb3kD0DVCujmg46K5zLxsbiKaaT6VO9slkSBDPZfYs30lwfJwbOFOnoEnKQ==

react-is@^16.6.0-alpha.8af6728:
version "16.6.0-alpha.8af6728"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.6.0-alpha.8af6728.tgz#3ce01f13f164b90a76ad902735834fc12d06e30e"
integrity sha512-F65AeMavskvRglteO7dC0Nvq3Br1ESnpCOG5M6fenQX52Uhpt6eCI0vL3ICM/hnVhIOQY2fwnSWtST33OlgxVA==

react-lifecycles-compat@^3, react-lifecycles-compat@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
Expand Down Expand Up @@ -7720,6 +7725,16 @@ react-redux@^5.0.7:
loose-envify "^1.1.0"
prop-types "^15.6.0"

react-test-renderer@16.6.0-alpha.8af6728:
version "16.6.0-alpha.8af6728"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.6.0-alpha.8af6728.tgz#5b9eaa972f0016c95d1ef5d93f727c5dc4a5a0ee"
integrity sha512-42RB1hvEjVuJGrGddGqVj1obs9NhWiuijkz+qsuY0qRzF0ygD5xg4eRdm0H4YNtkp+332g6OWO9O2ussu67cFQ==
dependencies:
object-assign "^4.1.1"
prop-types "^15.6.2"
react-is "^16.6.0-alpha.8af6728"
scheduler "^0.10.0-alpha.8af6728"

react-test-renderer@^16.0.0-0:
version "16.0.0-beta.5"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.0.0-beta.5.tgz#6169e2ea96e8d21645662b369c23239974cd1f11"
Expand All @@ -7728,16 +7743,6 @@ react-test-renderer@^16.0.0-0:
fbjs "^0.8.9"
object-assign "^4.1.0"

react-test-renderer@^16.5.2:
version "16.5.2"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.5.2.tgz#92e9d2c6f763b9821b2e0b22f994ee675068b5ae"
integrity sha512-AGbJYbCVx1J6jdUgI4s0hNp+9LxlgzKvXl0ROA3DHTrtjAr00Po1RhDZ/eAq2VC/ww8AHgpDXULh5V2rhEqqJg==
dependencies:
object-assign "^4.1.1"
prop-types "^15.6.2"
react-is "^16.5.2"
schedule "^0.5.0"

react-timer-mixin@^0.13.2, react-timer-mixin@^0.13.3:
version "0.13.3"
resolved "https://registry.yarnpkg.com/react-timer-mixin/-/react-timer-mixin-0.13.3.tgz#0da8b9f807ec07dc3e854d082c737c65605b3d22"
Expand Down

0 comments on commit cc5e3b3

Please sign in to comment.