Skip to content

Commit eb0d35b

Browse files
committed
Dev: fix jest tests
1 parent a47b7c4 commit eb0d35b

File tree

4 files changed

+67
-4
lines changed

4 files changed

+67
-4
lines changed

.babelrc

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

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
"presets": [ "module:metro-react-native-babel-preset" ]
3+
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
},
4040
"devDependencies": {
4141
"@textpress/eslint-config-textpress": "^0.4.0",
42+
"babel-core": "^7.0.0-bridge.0",
4243
"babel-jest": "^23.0.1",
4344
"babel-preset-react-native": "^4.0.0",
4445
"conventional-github-releaser": "^3.1.2",
4546
"eslint": "^5.6.0",
4647
"jest": "^23.1.0",
47-
"metro-react-native-babel-preset": "0.45.3",
48+
"metro-react-native-babel-preset": "0.45.5",
4849
"moment": "^2.22.2",
4950
"prop-types": "^15.6.2",
5051
"react": "16.5.0",

yarn.lock

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,13 @@
309309
"@babel/helper-replace-supers" "^7.1.0"
310310
"@babel/plugin-syntax-class-properties" "^7.0.0"
311311

312+
"@babel/plugin-proposal-export-default-from@^7.0.0":
313+
version "7.0.0"
314+
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.0.0.tgz#a057bbfd4649facfe39f33a537e18554bdd2b5da"
315+
dependencies:
316+
"@babel/helper-plugin-utils" "^7.0.0"
317+
"@babel/plugin-syntax-export-default-from" "^7.0.0"
318+
312319
"@babel/plugin-proposal-nullish-coalescing-operator@^7.0.0":
313320
version "7.0.0"
314321
resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.0.0.tgz#b72ec31adf612d062dc0348316246127a451e45f"
@@ -349,6 +356,12 @@
349356
dependencies:
350357
"@babel/helper-plugin-utils" "^7.0.0"
351358

359+
"@babel/plugin-syntax-export-default-from@^7.0.0":
360+
version "7.0.0"
361+
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.0.0.tgz#084b639bce3d42f3c5bf3f68ccb42220bb2d729d"
362+
dependencies:
363+
"@babel/helper-plugin-utils" "^7.0.0"
364+
352365
"@babel/plugin-syntax-flow@^7.0.0":
353366
version "7.0.0"
354367
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.0.0.tgz#70638aeaad9ee426bc532e51523cff8ff02f6f17"
@@ -1014,6 +1027,10 @@ babel-core@^6.0.0, babel-core@^6.26.0, babel-core@^6.7.2:
10141027
slash "^1.0.0"
10151028
source-map "^0.5.7"
10161029

1030+
babel-core@^7.0.0-bridge.0:
1031+
version "7.0.0-bridge.0"
1032+
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-7.0.0-bridge.0.tgz#95a492ddd90f9b4e9a4a1da14eb335b87b634ece"
1033+
10171034
babel-eslint@*:
10181035
version "8.2.6"
10191036
resolved "https://registry.yarnpkg.com/babel-eslint/-/babel-eslint-8.2.6.tgz#6270d0c73205628067c0f7ae1693a9e797acefd9"
@@ -4396,6 +4413,12 @@ [email protected]:
43964413
dependencies:
43974414
"@babel/helper-module-imports" "^7.0.0"
43984415

4416+
4417+
version "0.45.5"
4418+
resolved "https://registry.yarnpkg.com/metro-babel7-plugin-react-transform/-/metro-babel7-plugin-react-transform-0.45.5.tgz#c10ad4dac12d0bdcba51ad559b7e952d24848efd"
4419+
dependencies:
4420+
"@babel/helper-module-imports" "^7.0.0"
4421+
43994422
44004423
version "0.45.3"
44014424
resolved "https://registry.yarnpkg.com/metro-cache/-/metro-cache-0.45.3.tgz#962091f236bd1a29fdc8b004e6246e9c1582a966"
@@ -4468,6 +4491,45 @@ [email protected]:
44684491
"@babel/template" "^7.0.0"
44694492
metro-babel7-plugin-react-transform "0.45.3"
44704493

4494+
4495+
version "0.45.5"
4496+
resolved "https://registry.yarnpkg.com/metro-react-native-babel-preset/-/metro-react-native-babel-preset-0.45.5.tgz#c9918ff46a01ee55a5d76134f8002e28ff5deed8"
4497+
dependencies:
4498+
"@babel/plugin-proposal-class-properties" "^7.0.0"
4499+
"@babel/plugin-proposal-export-default-from" "^7.0.0"
4500+
"@babel/plugin-proposal-nullish-coalescing-operator" "^7.0.0"
4501+
"@babel/plugin-proposal-object-rest-spread" "^7.0.0"
4502+
"@babel/plugin-proposal-optional-catch-binding" "^7.0.0"
4503+
"@babel/plugin-proposal-optional-chaining" "^7.0.0"
4504+
"@babel/plugin-syntax-dynamic-import" "^7.0.0"
4505+
"@babel/plugin-syntax-export-default-from" "^7.0.0"
4506+
"@babel/plugin-transform-arrow-functions" "^7.0.0"
4507+
"@babel/plugin-transform-block-scoping" "^7.0.0"
4508+
"@babel/plugin-transform-classes" "^7.0.0"
4509+
"@babel/plugin-transform-computed-properties" "^7.0.0"
4510+
"@babel/plugin-transform-destructuring" "^7.0.0"
4511+
"@babel/plugin-transform-exponentiation-operator" "^7.0.0"
4512+
"@babel/plugin-transform-flow-strip-types" "^7.0.0"
4513+
"@babel/plugin-transform-for-of" "^7.0.0"
4514+
"@babel/plugin-transform-function-name" "^7.0.0"
4515+
"@babel/plugin-transform-literals" "^7.0.0"
4516+
"@babel/plugin-transform-modules-commonjs" "^7.0.0"
4517+
"@babel/plugin-transform-object-assign" "^7.0.0"
4518+
"@babel/plugin-transform-parameters" "^7.0.0"
4519+
"@babel/plugin-transform-react-display-name" "^7.0.0"
4520+
"@babel/plugin-transform-react-jsx" "^7.0.0"
4521+
"@babel/plugin-transform-react-jsx-source" "^7.0.0"
4522+
"@babel/plugin-transform-regenerator" "^7.0.0"
4523+
"@babel/plugin-transform-shorthand-properties" "^7.0.0"
4524+
"@babel/plugin-transform-spread" "^7.0.0"
4525+
"@babel/plugin-transform-sticky-regex" "^7.0.0"
4526+
"@babel/plugin-transform-template-literals" "^7.0.0"
4527+
"@babel/plugin-transform-typescript" "^7.0.0"
4528+
"@babel/plugin-transform-unicode-regex" "^7.0.0"
4529+
"@babel/template" "^7.0.0"
4530+
metro-babel7-plugin-react-transform "0.45.5"
4531+
react-transform-hmr "^1.0.4"
4532+
44714533
44724534
version "0.45.3"
44734535
resolved "https://registry.yarnpkg.com/metro-resolver/-/metro-resolver-0.45.3.tgz#d9fda2b5e145e42a88519b6451230418746bde17"

0 commit comments

Comments
 (0)