diff --git a/package.json b/package.json index c146db2c1..21e57464d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "main": "./index.js", "dependencies": { "babel-code-frame": "7.0.0-alpha.12", - "babylon": "7.0.0-beta.14", + "babylon": "7.0.0-beta.13", "chalk": "1.1.3", "diff": "3.2.0", "esutils": "2.0.2", diff --git a/tests/flow_jsx/__snapshots__/jsfmt.spec.js.snap b/tests/flow_jsx/__snapshots__/jsfmt.spec.js.snap index ec0cc79f6..80b406ed7 100644 --- a/tests/flow_jsx/__snapshots__/jsfmt.spec.js.snap +++ b/tests/flow_jsx/__snapshots__/jsfmt.spec.js.snap @@ -1,8 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`func_inside_attr.js 1`] = ` - {}} /> +exports[`return_type.js 1`] = ` +const fail = (): X => ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - {}} />; +const fail = (): X => ; `; diff --git a/tests/flow_jsx/func_inside_attr.js b/tests/flow_jsx/func_inside_attr.js deleted file mode 100644 index c38d33f8a..000000000 --- a/tests/flow_jsx/func_inside_attr.js +++ /dev/null @@ -1 +0,0 @@ - {}} /> diff --git a/tests/flow_jsx/return_type.js b/tests/flow_jsx/return_type.js new file mode 100644 index 000000000..b93d8fbc6 --- /dev/null +++ b/tests/flow_jsx/return_type.js @@ -0,0 +1 @@ +const fail = (): X => ; diff --git a/yarn.lock b/yarn.lock index 4bb78642c..b967b7dc3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -656,9 +656,9 @@ babel-types@^6.18.0, babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.25 lodash "^4.2.0" to-fast-properties "^1.0.1" -babylon@7.0.0-beta.14: - version "7.0.0-beta.14" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.14.tgz#72aa3c493c984c2edc54d4bc077b74066ed4511d" +babylon@7.0.0-beta.13: + version "7.0.0-beta.13" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.13.tgz#12425c1bfd9498be419021ed36b43fe4f0289c0a" babylon@^6.13.0, babylon@^6.17.2: version "6.17.3"