Make it clear what parser was used in each snapshot (#1068)

master
ChristianHersevoort 2017-03-21 22:47:23 +01:00 committed by Christopher Chedeau
parent ce6e897950
commit 4f7ae4815b
455 changed files with 1479 additions and 1471 deletions

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`multiple.js 1`] = ` exports[`multiple.js-flow 1`] = `
"[...a, ...b,]; "[...a, ...b,];
[...a, ...b]; [...a, ...b];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -9,7 +9,7 @@ exports[`multiple.js 1`] = `
" "
`; `;
exports[`multiple.js 2`] = ` exports[`multiple.js-typescript 1`] = `
"[...a, ...b,]; "[...a, ...b,];
[...a, ...b]; [...a, ...b];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`last.js 1`] = ` exports[`last.js-flow 1`] = `
"[,]; "[,];
[,,]; [,,];
[,,1,]; [,,1,];
@ -13,7 +13,7 @@ exports[`last.js 1`] = `
" "
`; `;
exports[`last.js 2`] = ` exports[`last.js-typescript 1`] = `
"[,]; "[,];
[,,]; [,,];
[,,1,]; [,,1,];
@ -26,7 +26,7 @@ exports[`last.js 2`] = `
" "
`; `;
exports[`preserve_empty_lines.js 1`] = ` exports[`preserve_empty_lines.js-flow 1`] = `
"a = [ "a = [
1, 1,
@ -44,7 +44,7 @@ a = [1, 2, 3, 4];
" "
`; `;
exports[`preserve_empty_lines.js 2`] = ` exports[`preserve_empty_lines.js-typescript 1`] = `
"a = [ "a = [
1, 1,

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow_function_expression.js 1`] = ` exports[`arrow_function_expression.js-babylon 1`] = `
"(a => {}).length "(a => {}).length
typeof (() => {}); typeof (() => {});
export default (() => {})(); export default (() => {})();
@ -66,14 +66,14 @@ a = (b?) => c;
" "
`; `;
exports[`block_like.js 1`] = ` exports[`block_like.js-babylon 1`] = `
"a = () => ({} = this); "a = () => ({} = this);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = () => ({} = this); a = () => ({} = this);
" "
`; `;
exports[`call.js 1`] = ` exports[`call.js-babylon 1`] = `
"Seq(typeDef.interface.groups).forEach(group => "Seq(typeDef.interface.groups).forEach(group =>
Seq(group.members).forEach((member, memberName) => Seq(group.members).forEach((member, memberName) =>
markdownDoc( markdownDoc(
@ -231,7 +231,7 @@ jest.mock(
" "
`; `;
exports[`long-call-no-args.js 1`] = ` exports[`long-call-no-args.js-babylon 1`] = `
"veryLongCall(VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_LONG_CONSTANT, () => {}) "veryLongCall(VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_LONG_CONSTANT, () => {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veryLongCall( veryLongCall(
@ -241,7 +241,7 @@ veryLongCall(
" "
`; `;
exports[`long-contents.js 1`] = ` exports[`long-contents.js-babylon 1`] = `
"const foo = () => { "const foo = () => {
expect(arg1, arg2, arg3).toEqual({message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:36'}); expect(arg1, arg2, arg3).toEqual({message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:36'});
}; };
@ -257,7 +257,7 @@ const foo = () => {
" "
`; `;
exports[`short_body.js 1`] = ` exports[`short_body.js-babylon 1`] = `
"const initializeSnapshotState = ( "const initializeSnapshotState = (
testFile: Path, testFile: Path,
update: boolean, update: boolean,

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`binaryish.js 1`] = ` exports[`binaryish.js-flow 1`] = `
"const computedDescriptionLines = (showConfirm && "const computedDescriptionLines = (showConfirm &&
descriptionLinesConfirming) || descriptionLinesConfirming) ||
(focused && !loading && descriptionLinesFocused) || (focused && !loading && descriptionLinesFocused) ||

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment_comments.js 1`] = ` exports[`assignment_comments.js-flow 1`] = `
"fnString = "fnString =
// Comment // Comment
'some' + 'long' + 'string'; 'some' + 'long' + 'string';
@ -120,7 +120,7 @@ let f = (
" "
`; `;
exports[`assignment_comments.js 2`] = ` exports[`assignment_comments.js-typescript 1`] = `
"fnString = "fnString =
// Comment // Comment
'some' + 'long' + 'string'; 'some' + 'long' + 'string';

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment_expression.js 1`] = ` exports[`assignment_expression.js-flow 1`] = `
"this.size = this._origin = this._capacity = 0; "this.size = this._origin = this._capacity = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this.size = this._origin = this._capacity = 0; this.size = this._origin = this._capacity = 0;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`await_parse.js 1`] = ` exports[`await_parse.js-flow 1`] = `
"async function f() { (await f()).length } "async function f() { (await f()).length }
async function g() { async function g() {
invariant( invariant(
@ -29,7 +29,7 @@ async function f() {
" "
`; `;
exports[`await_parse.js 2`] = ` exports[`await_parse.js-typescript 1`] = `
"async function f() { (await f()).length } "async function f() { (await f()).length }
async function g() { async function g() {
invariant( invariant(
@ -58,7 +58,7 @@ async function f() {
" "
`; `;
exports[`conditional-expression.js 1`] = ` exports[`conditional-expression.js-flow 1`] = `
"async function f() { "async function f() {
const result = typeof fn === 'function' ? await fn() : null; const result = typeof fn === 'function' ? await fn() : null;
} }
@ -79,7 +79,7 @@ async function f() {
" "
`; `;
exports[`conditional-expression.js 2`] = ` exports[`conditional-expression.js-typescript 1`] = `
"async function f() { "async function f() {
const result = typeof fn === 'function' ? await fn() : null; const result = typeof fn === 'function' ? await fn() : null;
} }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow.js 1`] = ` exports[`arrow.js-flow 1`] = `
"function f() { "function f() {
const appEntitys = getAppEntitys(loadObject).filter( const appEntitys = getAppEntitys(loadObject).filter(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled() entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled()
@ -19,7 +19,7 @@ function f() {
" "
`; `;
exports[`comment.js 1`] = ` exports[`comment.js-flow 1`] = `
"a = ( "a = (
// Commment 1 // Commment 1
(Math.random() * (yRange * (1 - minVerticalFraction))) (Math.random() * (yRange * (1 - minVerticalFraction)))
@ -34,7 +34,7 @@ a =
" "
`; `;
exports[`exp.js 1`] = ` exports[`exp.js-flow 1`] = `
"a ** b ** c; "a ** b ** c;
(a ** b) ** c; (a ** b) ** c;
a.b ** c; a.b ** c;
@ -55,7 +55,7 @@ a ** (b * c);
" "
`; `;
exports[`inline-object-array.js 1`] = ` exports[`inline-object-array.js-flow 1`] = `
"prevState = prevState || { "prevState = prevState || {
catalogs: [], catalogs: [],
loadState: LOADED, loadState: LOADED,
@ -88,7 +88,7 @@ this.steps = steps || [
" "
`; `;
exports[`short-right.js 1`] = ` exports[`short-right.js-flow 1`] = `
"this._cumulativeHeights && "this._cumulativeHeights &&
Math.abs( Math.abs(
this._cachedItemHeight(this._firstVisibleIndex + i) - this._cachedItemHeight(this._firstVisibleIndex + i) -
@ -128,7 +128,7 @@ defaultContent.filter(defaultLocale => {
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"// It should always break the highest precedence operators first, and "// It should always break the highest precedence operators first, and
// break them all at the same time. // break them all at the same time.

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`array.js 1`] = ` exports[`array.js-flow 1`] = `
"const arr1 = [1,2,3,4]; "const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4]; const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -9,7 +9,7 @@ const arr2 = [1, 2, 3, 4];
" "
`; `;
exports[`array.js 2`] = ` exports[`array.js-flow 2`] = `
"const arr1 = [1,2,3,4]; "const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4]; const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -18,7 +18,7 @@ const arr2 = [1, 2, 3, 4];
" "
`; `;
exports[`array.js 3`] = ` exports[`array.js-typescript 1`] = `
"const arr1 = [1,2,3,4]; "const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4]; const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -27,7 +27,7 @@ const arr2 = [1, 2, 3, 4];
" "
`; `;
exports[`array.js 4`] = ` exports[`array.js-typescript 2`] = `
"const arr1 = [1,2,3,4]; "const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4]; const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -36,7 +36,7 @@ const arr2 = [1, 2, 3, 4];
" "
`; `;
exports[`object.js 1`] = ` exports[`object.js-flow 1`] = `
"const obj1 = {a:1, b:2, c:3} "const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 }; const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -45,7 +45,7 @@ const obj2 = { a: 1, b: 2, c: 3 };
" "
`; `;
exports[`object.js 2`] = ` exports[`object.js-flow 2`] = `
"const obj1 = {a:1, b:2, c:3} "const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 }; const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -54,7 +54,7 @@ const obj2 = {a: 1, b: 2, c: 3};
" "
`; `;
exports[`object.js 3`] = ` exports[`object.js-typescript 1`] = `
"const obj1 = {a:1, b:2, c:3} "const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 }; const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -63,7 +63,7 @@ const obj2 = { a: 1, b: 2, c: 3 };
" "
`; `;
exports[`object.js 4`] = ` exports[`object.js-typescript 2`] = `
"const obj1 = {a:1, b:2, c:3} "const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 }; const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break.js 1`] = ` exports[`break.js-flow 1`] = `
"h(f(g(() => { "h(f(g(() => {
a a
}))) })))
@ -80,7 +80,7 @@ expect(
" "
`; `;
exports[`break.js 2`] = ` exports[`break.js-typescript 1`] = `
"h(f(g(() => { "h(f(g(() => {
a a
}))) })))
@ -160,7 +160,7 @@ expect(
" "
`; `;
exports[`parent.js 1`] = ` exports[`parent.js-flow 1`] = `
"runtimeAgent.getProperties( "runtimeAgent.getProperties(
objectId, objectId,
false, // ownProperties false, // ownProperties
@ -183,7 +183,7 @@ runtimeAgent.getProperties(
" "
`; `;
exports[`parent.js 2`] = ` exports[`parent.js-typescript 1`] = `
"runtimeAgent.getProperties( "runtimeAgent.getProperties(
objectId, objectId,
false, // ownProperties false, // ownProperties

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = ` exports[`comments.js-flow 1`] = `
"class A // comment 1 "class A // comment 1
// comment 2 // comment 2
extends B {} extends B {}
@ -57,7 +57,7 @@ class A extends /* a */ B {}
" "
`; `;
exports[`comments.js 2`] = ` exports[`comments.js-typescript 1`] = `
"class A // comment 1 "class A // comment 1
// comment 2 // comment 2
extends B {} extends B {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`extends.js 1`] = ` exports[`extends.js-flow 1`] = `
"// \\"ArrowFunctionExpression\\" "// \\"ArrowFunctionExpression\\"
class a extends (() => {}) {} class a extends (() => {}) {}
@ -119,7 +119,7 @@ x = class extends (++b) {};
" "
`; `;
exports[`extends.js 2`] = ` exports[`extends.js-typescript 1`] = `
"// \\"ArrowFunctionExpression\\" "// \\"ArrowFunctionExpression\\"
class a extends (() => {}) {} class a extends (() => {}) {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`binary.js 1`] = ` exports[`binary.js-flow 1`] = `
"(class {}) + 1; "(class {}) + 1;
(class a {}) + 1; (class a {}) + 1;
(class extends b {}) + 1; (class extends b {}) + 1;
@ -13,7 +13,7 @@ exports[`binary.js 1`] = `
" "
`; `;
exports[`break.js 1`] = ` exports[`break.js-flow 1`] = `
"class MyContractSelectionWidget extends React.Component<void, MyContractSelectionWidgetPropsType, void> implements SomethingLarge { "class MyContractSelectionWidget extends React.Component<void, MyContractSelectionWidgetPropsType, void> implements SomethingLarge {
method() {} method() {}
} }
@ -26,14 +26,14 @@ class MyContractSelectionWidget
" "
`; `;
exports[`call.js 1`] = ` exports[`call.js-flow 1`] = `
"(class {})(class {}); "(class {})(class {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(class {}(class {})); (class {}(class {}));
" "
`; `;
exports[`empty.js 1`] = ` exports[`empty.js-flow 1`] = `
"class A { "class A {
// comment // comment
} }
@ -64,7 +64,7 @@ class A {
" "
`; `;
exports[`member.js 1`] = ` exports[`member.js-flow 1`] = `
"(class {})[1]; "(class {})[1];
(class {}).a; (class {}).a;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -73,7 +73,7 @@ exports[`member.js 1`] = `
" "
`; `;
exports[`ternary.js 1`] = ` exports[`ternary.js-flow 1`] = `
"if (1) (class {}) ? 1 : 2; "if (1) (class {}) ? 1 : 2;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (1) (class {} ? 1 : 2); if (1) (class {} ? 1 : 2);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment-pattern.js 1`] = ` exports[`assignment-pattern.js-babylon 1`] = `
"const { a /* comment */ = 1 } = b; "const { a /* comment */ = 1 } = b;
const { c = 1 /* comment */ } = d; const { c = 1 /* comment */ } = d;
@ -18,7 +18,7 @@ let {
" "
`; `;
exports[`assignment-pattern.js 2`] = ` exports[`assignment-pattern.js-flow 1`] = `
"const { a /* comment */ = 1 } = b; "const { a /* comment */ = 1 } = b;
const { c = 1 /* comment */ } = d; const { c = 1 /* comment */ } = d;
@ -36,7 +36,7 @@ let {
" "
`; `;
exports[`blank.js 1`] = ` exports[`blank.js-babylon 1`] = `
"// This file only "// This file only
// has comments. This comment // has comments. This comment
// should still exist // should still exist
@ -83,7 +83,7 @@ exports[`blank.js 1`] = `
" "
`; `;
exports[`blank.js 2`] = ` exports[`blank.js-flow 1`] = `
"// This file only "// This file only
// has comments. This comment // has comments. This comment
// should still exist // should still exist
@ -130,7 +130,7 @@ exports[`blank.js 2`] = `
" "
`; `;
exports[`call_comment.js 1`] = ` exports[`call_comment.js-babylon 1`] = `
"render( // Warm any cache "render( // Warm any cache
<ChildUpdates renderAnchor={true} anchorClassOn={true} />, <ChildUpdates renderAnchor={true} anchorClassOn={true} />,
container container
@ -155,7 +155,7 @@ React.render(
" "
`; `;
exports[`call_comment.js 2`] = ` exports[`call_comment.js-flow 1`] = `
"render( // Warm any cache "render( // Warm any cache
<ChildUpdates renderAnchor={true} anchorClassOn={true} />, <ChildUpdates renderAnchor={true} anchorClassOn={true} />,
container container
@ -180,7 +180,7 @@ React.render(
" "
`; `;
exports[`dangling.js 1`] = ` exports[`dangling.js-babylon 1`] = `
"var x = {/* dangling */}; "var x = {/* dangling */};
var x = { var x = {
// dangling // dangling
@ -211,7 +211,7 @@ export /* dangling */{};
" "
`; `;
exports[`dangling.js 2`] = ` exports[`dangling.js-flow 1`] = `
"var x = {/* dangling */}; "var x = {/* dangling */};
var x = { var x = {
// dangling // dangling
@ -242,7 +242,7 @@ export /* dangling */{};
" "
`; `;
exports[`dangling_array.js 1`] = ` exports[`dangling_array.js-babylon 1`] = `
"expect(() => {}).toTriggerReadyStateChanges([ "expect(() => {}).toTriggerReadyStateChanges([
// Nothing. // Nothing.
]); ]);
@ -259,7 +259,7 @@ expect(() => {}).toTriggerReadyStateChanges(
" "
`; `;
exports[`dangling_array.js 2`] = ` exports[`dangling_array.js-flow 1`] = `
"expect(() => {}).toTriggerReadyStateChanges([ "expect(() => {}).toTriggerReadyStateChanges([
// Nothing. // Nothing.
]); ]);
@ -276,7 +276,7 @@ expect(() => {}).toTriggerReadyStateChanges(
" "
`; `;
exports[`dangling_for.js 1`] = ` exports[`dangling_for.js-babylon 1`] = `
"for // comment "for // comment
(;;); (;;);
@ -290,7 +290,7 @@ for (;;);
" "
`; `;
exports[`dangling_for.js 2`] = ` exports[`dangling_for.js-flow 1`] = `
"for // comment "for // comment
(;;); (;;);
@ -304,7 +304,7 @@ for (;;);
" "
`; `;
exports[`export.js 1`] = ` exports[`export.js-babylon 1`] = `
"export //comment "export //comment
{} {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -313,7 +313,7 @@ export {};
" "
`; `;
exports[`export.js 2`] = ` exports[`export.js-flow 1`] = `
"export //comment "export //comment
{} {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -322,7 +322,7 @@ export {};
" "
`; `;
exports[`first-line.js 1`] = ` exports[`first-line.js-babylon 1`] = `
"a // comment "a // comment
b b
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -331,7 +331,7 @@ b;
" "
`; `;
exports[`first-line.js 2`] = ` exports[`first-line.js-flow 1`] = `
"a // comment "a // comment
b b
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -340,7 +340,7 @@ b;
" "
`; `;
exports[`flow_union.js 1`] = ` exports[`flow_union.js-babylon 1`] = `
"type UploadState<E, EM, D> "type UploadState<E, EM, D>
// The upload hasnt begun yet // The upload hasnt begun yet
= {type: \\"Not_begun\\"} = {type: \\"Not_begun\\"}
@ -383,7 +383,7 @@ type UploadState<E, EM, D> =
" "
`; `;
exports[`flow_union.js 2`] = ` exports[`flow_union.js-flow 1`] = `
"type UploadState<E, EM, D> "type UploadState<E, EM, D>
// The upload hasnt begun yet // The upload hasnt begun yet
= {type: \\"Not_begun\\"} = {type: \\"Not_begun\\"}
@ -426,7 +426,7 @@ type UploadState<E, EM, D> =
" "
`; `;
exports[`function-declaration.js 1`] = ` exports[`function-declaration.js-babylon 1`] = `
"function a(/* comment */) {} // comment "function a(/* comment */) {} // comment
function b() {} // comment function b() {} // comment
function c(/* comment */ argA, argB, argC) {} // comment function c(/* comment */ argA, argB, argC) {} // comment
@ -437,7 +437,7 @@ function c(/* comment */ argA, argB, argC) {} // comment
" "
`; `;
exports[`function-declaration.js 2`] = ` exports[`function-declaration.js-flow 1`] = `
"function a(/* comment */) {} // comment "function a(/* comment */) {} // comment
function b() {} // comment function b() {} // comment
function c(/* comment */ argA, argB, argC) {} // comment function c(/* comment */ argA, argB, argC) {} // comment
@ -448,7 +448,7 @@ function c(/* comment */ argA, argB, argC) {} // comment
" "
`; `;
exports[`if.js 1`] = ` exports[`if.js-babylon 1`] = `
"if (1) "if (1)
// comment // comment
{ {
@ -492,7 +492,7 @@ else if (4) {
" "
`; `;
exports[`if.js 2`] = ` exports[`if.js-flow 1`] = `
"if (1) "if (1)
// comment // comment
{ {
@ -536,7 +536,7 @@ else if (4) {
" "
`; `;
exports[`issues.js 1`] = ` exports[`issues.js-babylon 1`] = `
"// Does not need to break as it fits in 80 columns "// Does not need to break as it fits in 80 columns
this.call(a, /* comment */ b); this.call(a, /* comment */ b);
@ -762,7 +762,7 @@ foo(
" "
`; `;
exports[`issues.js 2`] = ` exports[`issues.js-flow 1`] = `
"// Does not need to break as it fits in 80 columns "// Does not need to break as it fits in 80 columns
this.call(a, /* comment */ b); this.call(a, /* comment */ b);
@ -988,7 +988,7 @@ foo(
" "
`; `;
exports[`jsx.js 1`] = ` exports[`jsx.js-babylon 1`] = `
"<div> "<div>
{ {
/* comment */ /* comment */
@ -1126,7 +1126,7 @@ exports[`jsx.js 1`] = `
" "
`; `;
exports[`jsx.js 2`] = ` exports[`jsx.js-flow 1`] = `
"<div> "<div>
{ {
/* comment */ /* comment */
@ -1264,7 +1264,7 @@ exports[`jsx.js 2`] = `
" "
`; `;
exports[`last-arg.js 1`] = ` exports[`last-arg.js-babylon 1`] = `
"type f = ( "type f = (
currentRequest: {a: number}, currentRequest: {a: number},
// TODO this is a very very very very long comment that makes it go > 80 columns // TODO this is a very very very very long comment that makes it go > 80 columns
@ -1321,7 +1321,7 @@ class X {
" "
`; `;
exports[`last-arg.js 2`] = ` exports[`last-arg.js-flow 1`] = `
"type f = ( "type f = (
currentRequest: {a: number}, currentRequest: {a: number},
// TODO this is a very very very very long comment that makes it go > 80 columns // TODO this is a very very very very long comment that makes it go > 80 columns
@ -1378,7 +1378,7 @@ class X {
" "
`; `;
exports[`preserve-new-line-last.js 1`] = ` exports[`preserve-new-line-last.js-babylon 1`] = `
"function f() { "function f() {
a a
/* eslint-disable */ /* eslint-disable */
@ -1425,7 +1425,7 @@ function name() {
" "
`; `;
exports[`preserve-new-line-last.js 2`] = ` exports[`preserve-new-line-last.js-flow 1`] = `
"function f() { "function f() {
a a
/* eslint-disable */ /* eslint-disable */
@ -1472,7 +1472,7 @@ function name() {
" "
`; `;
exports[`return-statement.js 1`] = ` exports[`return-statement.js-babylon 1`] = `
"function jsx() { "function jsx() {
return ( return (
// Comment // Comment
@ -1712,7 +1712,7 @@ function inlineComment() {
" "
`; `;
exports[`return-statement.js 2`] = ` exports[`return-statement.js-flow 1`] = `
"function jsx() { "function jsx() {
return ( return (
// Comment // Comment
@ -1952,7 +1952,7 @@ function inlineComment() {
" "
`; `;
exports[`switch.js 1`] = ` exports[`switch.js-babylon 1`] = `
"switch (node && node.type) { "switch (node && node.type) {
case \\"Property\\": case \\"Property\\":
case \\"MethodDefinition\\": case \\"MethodDefinition\\":
@ -1995,7 +1995,7 @@ switch (foo) {
" "
`; `;
exports[`switch.js 2`] = ` exports[`switch.js-flow 1`] = `
"switch (node && node.type) { "switch (node && node.type) {
case \\"Property\\": case \\"Property\\":
case \\"MethodDefinition\\": case \\"MethodDefinition\\":
@ -2038,7 +2038,7 @@ switch (foo) {
" "
`; `;
exports[`template-literal.js 1`] = ` exports[`template-literal.js-babylon 1`] = `
"\` "\`
\${a // comment \${a // comment
} }
@ -2067,7 +2067,7 @@ d};
" "
`; `;
exports[`template-literal.js 2`] = ` exports[`template-literal.js-flow 1`] = `
"\` "\`
\${a // comment \${a // comment
} }
@ -2096,7 +2096,7 @@ d};
" "
`; `;
exports[`try.js 1`] = ` exports[`try.js-babylon 1`] = `
"// comment 1 "// comment 1
try { try {
// comment 2 // comment 2
@ -2124,7 +2124,7 @@ try {
" "
`; `;
exports[`try.js 2`] = ` exports[`try.js-flow 1`] = `
"// comment 1 "// comment 1
try { try {
// comment 2 // comment 2

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`classes.js 1`] = ` exports[`classes.js-flow 1`] = `
"class c { "class c {
[\\"i\\"]() {} [\\"i\\"]() {}
} }
@ -11,7 +11,7 @@ class c {
" "
`; `;
exports[`classes.js 2`] = ` exports[`classes.js-typescript 1`] = `
"class c { "class c {
[\\"i\\"]() {} [\\"i\\"]() {}
} }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = ` exports[`comments.js-flow 1`] = `
"var inspect = 4 === util.inspect.length "var inspect = 4 === util.inspect.length
? // node <= 0.8.x ? // node <= 0.8.x
(function(v, colors) { (function(v, colors) {
@ -79,7 +79,7 @@ const { configureStore } = process.env.NODE_ENV === \\"production\\"
" "
`; `;
exports[`comments.js 2`] = ` exports[`comments.js-typescript 1`] = `
"var inspect = 4 === util.inspect.length "var inspect = 4 === util.inspect.length
? // node <= 0.8.x ? // node <= 0.8.x
(function(v, colors) { (function(v, colors) {
@ -158,7 +158,7 @@ const { configureStore } = process.env.NODE_ENV === \\"production\\"
" "
`; `;
exports[`new-expression.js 1`] = ` exports[`new-expression.js-flow 1`] = `
"const testConsole = new TestConsole( "const testConsole = new TestConsole(
config.useStderr ? process.stderr : process.stdout config.useStderr ? process.stderr : process.stdout
); );
@ -169,7 +169,7 @@ const testConsole = new TestConsole(
" "
`; `;
exports[`new-expression.js 2`] = ` exports[`new-expression.js-typescript 1`] = `
"const testConsole = new TestConsole( "const testConsole = new TestConsole(
config.useStderr ? process.stderr : process.stdout config.useStderr ? process.stderr : process.stdout
); );

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`mobx.js 1`] = ` exports[`mobx.js-babylon 1`] = `
"import {observable} from \\"mobx\\"; "import {observable} from \\"mobx\\";
@observer class OrderLine { @observer class OrderLine {
@ -41,7 +41,7 @@ import { observable } from \\"mobx\\";
" "
`; `;
exports[`multiple.js 1`] = ` exports[`multiple.js-babylon 1`] = `
"const dog = { "const dog = {
@readonly @readonly
@nonenumerable @nonenumerable
@ -58,7 +58,7 @@ const dog = {
" "
`; `;
exports[`redux.js 1`] = ` exports[`redux.js-babylon 1`] = `
"@connect(mapStateToProps, mapDispatchToProps) "@connect(mapStateToProps, mapDispatchToProps)
export class MyApp extends React.Component {} export class MyApp extends React.Component {}

View File

@ -1,45 +1,45 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`last-line-0.js 1`] = ` exports[`last-line-0.js-babylon 1`] = `
"'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-0.js 2`] = ` exports[`last-line-0.js-flow 1`] = `
"'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-0.js 3`] = ` exports[`last-line-0.js-typescript 1`] = `
"'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-1.js 1`] = ` exports[`last-line-1.js-babylon 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-1.js 2`] = ` exports[`last-line-1.js-flow 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-1.js 3`] = ` exports[`last-line-1.js-typescript 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\\"use strict\\"; \\"use strict\\";
" "
`; `;
exports[`last-line-2.js 1`] = ` exports[`last-line-2.js-babylon 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -47,7 +47,7 @@ exports[`last-line-2.js 1`] = `
" "
`; `;
exports[`last-line-2.js 2`] = ` exports[`last-line-2.js-flow 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -55,7 +55,7 @@ exports[`last-line-2.js 2`] = `
" "
`; `;
exports[`last-line-2.js 3`] = ` exports[`last-line-2.js-typescript 1`] = `
"'use strict'; "'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -63,7 +63,7 @@ exports[`last-line-2.js 3`] = `
" "
`; `;
exports[`newline.js 1`] = ` exports[`newline.js-babylon 1`] = `
"/* @flow */ "/* @flow */
\\"use strict\\"; \\"use strict\\";
@ -82,7 +82,7 @@ a();
" "
`; `;
exports[`newline.js 2`] = ` exports[`newline.js-flow 1`] = `
"/* @flow */ "/* @flow */
\\"use strict\\"; \\"use strict\\";
@ -101,7 +101,7 @@ a();
" "
`; `;
exports[`newline.js 3`] = ` exports[`newline.js-typescript 1`] = `
"/* @flow */ "/* @flow */
\\"use strict\\"; \\"use strict\\";
@ -120,7 +120,7 @@ a();
" "
`; `;
exports[`no-newline.js 1`] = ` exports[`no-newline.js-babylon 1`] = `
"\\"use strict\\"; "\\"use strict\\";
a a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -129,7 +129,7 @@ a;
" "
`; `;
exports[`no-newline.js 2`] = ` exports[`no-newline.js-flow 1`] = `
"\\"use strict\\"; "\\"use strict\\";
a a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -138,7 +138,7 @@ a;
" "
`; `;
exports[`no-newline.js 3`] = ` exports[`no-newline.js-typescript 1`] = `
"\\"use strict\\"; "\\"use strict\\";
a a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -147,7 +147,7 @@ a;
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-babylon 1`] = `
"\\"use strict\\"; "\\"use strict\\";
function fn() { function fn() {
@ -162,7 +162,7 @@ function fn() {
" "
`; `;
exports[`test.js 2`] = ` exports[`test.js-flow 1`] = `
"\\"use strict\\"; "\\"use strict\\";
function fn() { function fn() {
@ -177,7 +177,7 @@ function fn() {
" "
`; `;
exports[`test.js 3`] = ` exports[`test.js-typescript 1`] = `
"\\"use strict\\"; "\\"use strict\\";
function fn() { function fn() {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`do.js 1`] = ` exports[`do.js-babylon 1`] = `
"const envSpecific = { "const envSpecific = {
domain: domain:
do { do {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-babylon 1`] = `
"import(\\"module.js\\"); "import(\\"module.js\\");
import(\\"module.js\\").then((a) => a); import(\\"module.js\\").then((a) => a);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty_paren_comment.js 1`] = ` exports[`empty_paren_comment.js-babylon 1`] = `
"let f = (/* ... */) => {} "let f = (/* ... */) => {}
(function (/* ... */) {})(/* ... */) (function (/* ... */) {})(/* ... */)
function f(/* ... */) {} function f(/* ... */) {}
@ -55,7 +55,7 @@ f(/* ... */ a, b);
" "
`; `;
exports[`empty_paren_comment.js 2`] = ` exports[`empty_paren_comment.js-flow 1`] = `
"let f = (/* ... */) => {} "let f = (/* ... */) => {}
(function (/* ... */) {})(/* ... */) (function (/* ... */) {})(/* ... */)
function f(/* ... */) {} function f(/* ... */) {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`body.js 1`] = ` exports[`body.js-flow 1`] = `
"with (a); "with (a);
if (1); else if (2); else; if (1); else if (2); else;
for (;;); for (;;);
@ -22,7 +22,7 @@ while (1);
" "
`; `;
exports[`body.js 2`] = ` exports[`body.js-typescript 1`] = `
"with (a); "with (a);
if (1); else if (2); else; if (1); else if (2); else;
for (;;); for (;;);

View File

@ -1,139 +1,139 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`export_default_arrow_expression.js 1`] = ` exports[`export_default_arrow_expression.js-babylon 1`] = `
"export default () => {}; "export default () => {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default () => {}; export default () => {};
" "
`; `;
exports[`export_default_arrow_expression.js 2`] = ` exports[`export_default_arrow_expression.js-flow 1`] = `
"export default () => {}; "export default () => {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default () => {}; export default () => {};
" "
`; `;
exports[`export_default_call_expression.js 1`] = ` exports[`export_default_call_expression.js-babylon 1`] = `
"export default foo() "export default foo()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default foo(); export default foo();
" "
`; `;
exports[`export_default_call_expression.js 2`] = ` exports[`export_default_call_expression.js-flow 1`] = `
"export default foo() "export default foo()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default foo(); export default foo();
" "
`; `;
exports[`export_default_class_declaration.js 1`] = ` exports[`export_default_class_declaration.js-babylon 1`] = `
"export default class Foo {} "export default class Foo {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default class Foo {} export default class Foo {}
" "
`; `;
exports[`export_default_class_declaration.js 2`] = ` exports[`export_default_class_declaration.js-flow 1`] = `
"export default class Foo {} "export default class Foo {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default class Foo {} export default class Foo {}
" "
`; `;
exports[`export_default_class_expression.js 1`] = ` exports[`export_default_class_expression.js-babylon 1`] = `
"export default (class foobar {}) "export default (class foobar {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class foobar {}); export default (class foobar {});
" "
`; `;
exports[`export_default_class_expression.js 2`] = ` exports[`export_default_class_expression.js-flow 1`] = `
"export default (class foobar {}) "export default (class foobar {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class foobar {}); export default (class foobar {});
" "
`; `;
exports[`export_default_function_declaration.js 1`] = ` exports[`export_default_function_declaration.js-babylon 1`] = `
"export default function() {} "export default function() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function() {} export default function() {}
" "
`; `;
exports[`export_default_function_declaration.js 2`] = ` exports[`export_default_function_declaration.js-flow 1`] = `
"export default function() {} "export default function() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function() {} export default function() {}
" "
`; `;
exports[`export_default_function_declaration_async.js 1`] = ` exports[`export_default_function_declaration_async.js-babylon 1`] = `
"export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (async function foo() {});
"
`;
exports[`export_default_function_declaration_async.js 2`] = `
"export default async function foo() {} "export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default async function foo() {} export default async function foo() {}
" "
`; `;
exports[`export_default_function_declaration_named.js 1`] = ` exports[`export_default_function_declaration_async.js-flow 1`] = `
"export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (async function foo() {});
"
`;
exports[`export_default_function_declaration_named.js-babylon 1`] = `
"export default function f(){} "export default function f(){}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function f() {} export default function f() {}
" "
`; `;
exports[`export_default_function_declaration_named.js 2`] = ` exports[`export_default_function_declaration_named.js-flow 1`] = `
"export default function f(){} "export default function f(){}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function f() {} export default function f() {}
" "
`; `;
exports[`export_default_function_expression.js 1`] = ` exports[`export_default_function_expression.js-babylon 1`] = `
"export default (function() {}); "export default (function() {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function() {}); export default (function() {});
" "
`; `;
exports[`export_default_function_expression.js 2`] = ` exports[`export_default_function_expression.js-flow 1`] = `
"export default (function() {}); "export default (function() {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function() {}); export default (function() {});
" "
`; `;
exports[`export_default_function_expression_named.js 1`] = ` exports[`export_default_function_expression_named.js-babylon 1`] = `
"export default (function f(){}) "export default (function f(){})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function f() {}); export default (function f() {});
" "
`; `;
exports[`export_default_function_expression_named.js 2`] = ` exports[`export_default_function_expression_named.js-flow 1`] = `
"export default (function f(){}) "export default (function f(){})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function f() {}); export default (function f() {});
" "
`; `;
exports[`export_default_new_expression.js 1`] = ` exports[`export_default_new_expression.js-babylon 1`] = `
"export default new Foo(); "export default new Foo();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default new Foo(); export default new Foo();
" "
`; `;
exports[`export_default_new_expression.js 2`] = ` exports[`export_default_new_expression.js-flow 1`] = `
"export default new Foo(); "export default new Foo();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default new Foo(); export default new Foo();

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`bracket.js 1`] = ` exports[`bracket.js-flow 1`] = `
"export { "export {
runTaskForChanged, runTaskForChanged,
description, description,
@ -27,7 +27,7 @@ export { fitsIn, oneLine };
" "
`; `;
exports[`bracket.js 2`] = ` exports[`bracket.js-flow 2`] = `
"export { "export {
runTaskForChanged, runTaskForChanged,
description, description,
@ -54,7 +54,7 @@ export {fitsIn, oneLine};
" "
`; `;
exports[`bracket.js 3`] = ` exports[`bracket.js-typescript 1`] = `
"export { "export {
runTaskForChanged, runTaskForChanged,
description, description,
@ -81,7 +81,7 @@ export { fitsIn, oneLine };
" "
`; `;
exports[`bracket.js 4`] = ` exports[`bracket.js-typescript 2`] = `
"export { "export {
runTaskForChanged, runTaskForChanged,
description, description,
@ -108,7 +108,7 @@ export {fitsIn, oneLine};
" "
`; `;
exports[`empty.js 1`] = ` exports[`empty.js-flow 1`] = `
"export {}; "export {};
export {} from \\".\\"; export {} from \\".\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -117,7 +117,7 @@ export {} from \\".\\";
" "
`; `;
exports[`empty.js 2`] = ` exports[`empty.js-flow 2`] = `
"export {}; "export {};
export {} from \\".\\"; export {} from \\".\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -126,7 +126,7 @@ export {} from \\".\\";
" "
`; `;
exports[`empty.js 3`] = ` exports[`empty.js-typescript 1`] = `
"export {}; "export {};
export {} from \\".\\"; export {} from \\".\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -135,7 +135,7 @@ export {} from \\".\\";
" "
`; `;
exports[`empty.js 4`] = ` exports[`empty.js-typescript 2`] = `
"export {}; "export {};
export {} from \\".\\"; export {} from \\".\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`body.js 1`] = ` exports[`body.js-flow 1`] = `
"export default (class {}[1] = 1); "export default (class {}[1] = 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class {}[1] = 1); export default (class {}[1] = 1);
" "
`; `;
exports[`body.js 2`] = ` exports[`body.js-typescript 1`] = `
"export default (class {}[1] = 1); "export default (class {}[1] = 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class {}[1] = 1); export default (class {}[1] = 1);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`export.js 1`] = ` exports[`export.js-babylon 1`] = `
"export * as ns from 'mod'; "export * as ns from 'mod';
export v from 'mod'; export v from 'mod';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-babylon 1`] = `
"export { value1, value2 as value2_renamed, value3, value4 as value4_renamed, value5 } from \\"exports\\"; "export { value1, value2 as value2_renamed, value3, value4 as value4_renamed, value5 } from \\"exports\\";
export a,{b} from \\"./baz\\"; export a,{b} from \\"./baz\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no_regression.js 1`] = ` exports[`no_regression.js-babylon 1`] = `
"// Ensure no regression. "// Ensure no regression.
\\"use strict\\"; \\"use strict\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -9,7 +9,7 @@ exports[`no_regression.js 1`] = `
" "
`; `;
exports[`use_strict.js 1`] = ` exports[`use_strict.js-babylon 1`] = `
"// Parentheses around expression statement should be preserved in this case. "// Parentheses around expression statement should be preserved in this case.
(\\"use strict\\"); (\\"use strict\\");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"setTimeout(function() { "setTimeout(function() {
thing(); thing();
}, 500); }, 500);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break-continue.js 1`] = ` exports[`break-continue.js-flow 1`] = `
"function foo() { "function foo() {
while(true) { break; } while(true) { break; }
} }
@ -23,7 +23,7 @@ function bar() {
" "
`; `;
exports[`return.js 1`] = ` exports[`return.js-flow 1`] = `
"function bar(x:number) { } "function bar(x:number) { }
function foo() { function foo() {
var x = null; var x = null;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`annot.js 1`] = ` exports[`annot.js-flow 1`] = `
"function foo(str:string, i:number):string { "function foo(str:string, i:number):string {
return str; return str;
} }
@ -194,7 +194,7 @@ type f = ?arg => void;
" "
`; `;
exports[`forward_ref.js 1`] = ` exports[`forward_ref.js-flow 1`] = `
"let myClassInstance: MyClass = null; // forward ref ok, null ~> class error "let myClassInstance: MyClass = null; // forward ref ok, null ~> class error
function bar(): MyClass { function bar(): MyClass {
@ -229,7 +229,7 @@ function foo() {
" "
`; `;
exports[`issue-530.js 1`] = ` exports[`issue-530.js-flow 1`] = `
"function foo(...args: any) { } "function foo(...args: any) { }
module.exports = foo; module.exports = foo;
@ -240,7 +240,7 @@ module.exports = foo;
" "
`; `;
exports[`leak.js 1`] = ` exports[`leak.js-flow 1`] = `
"/** @flow */ "/** @flow */
/* This test documents an example we ran into of a type annotation leaking. /* This test documents an example we ran into of a type annotation leaking.
@ -289,7 +289,7 @@ function bar(y: MyObj): string {
" "
`; `;
exports[`other.js 1`] = ` exports[`other.js-flow 1`] = `
"class C { } "class C { }
module.exports = (C: any); module.exports = (C: any);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -298,7 +298,7 @@ module.exports = (C: any);
" "
`; `;
exports[`scope.js 1`] = ` exports[`scope.js-flow 1`] = `
"type Merge<T> = (a: T, b: T) => T; "type Merge<T> = (a: T, b: T) => T;
// hypothetical immutable map // hypothetical immutable map
@ -355,7 +355,7 @@ class Foo<A> {
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"var C = require('./other'); "var C = require('./other');
((0: C): string); ((0: C): string);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"type T = any; "type T = any;
export default class { export default class {
@ -23,7 +23,7 @@ export default class {
" "
`; `;
exports[`B.js 1`] = ` exports[`B.js-flow 1`] = `
"import A from \\"./A\\" "import A from \\"./A\\"
class B extends A { class B extends A {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"/** "/**
* @providesModule A * @providesModule A
* @flow * @flow
@ -33,7 +33,7 @@ export default class {
" "
`; `;
exports[`B.js 1`] = ` exports[`B.js-flow 1`] = `
"/** "/**
* @flow * @flow
*/ */
@ -56,7 +56,7 @@ class B extends A {
" "
`; `;
exports[`T.js 1`] = ` exports[`T.js-flow 1`] = `
"/** "/**
* @providesModule T * @providesModule T
*/ */

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`any.js 1`] = ` exports[`any.js-flow 1`] = `
"// @flow "// @flow
function foo(x:any):any { return x; } function foo(x:any):any { return x; }
@ -29,7 +29,7 @@ var z: string = qux(0);
" "
`; `;
exports[`anyexportflowfile.js 1`] = ` exports[`anyexportflowfile.js-flow 1`] = `
"// @flow "// @flow
module.exports = ((x: any) => x: any); module.exports = ((x: any) => x: any);
@ -40,7 +40,7 @@ module.exports = ((x: any) => x: any);
" "
`; `;
exports[`flowfixme.js 1`] = ` exports[`flowfixme.js-flow 1`] = `
"/* "/*
FlowFixMe is a synonym for any, used by the Flow team to FlowFixMe is a synonym for any, used by the Flow team to
signal a needed mod to JS devs. signal a needed mod to JS devs.
@ -91,7 +91,7 @@ var w: string = baz(0);
" "
`; `;
exports[`flowissue.js 1`] = ` exports[`flowissue.js-flow 1`] = `
"/* "/*
$FlowIssue is a synonym for any, used by JS devs to signal $FlowIssue is a synonym for any, used by JS devs to signal
a potential typechecker bug to the Flow team. a potential typechecker bug to the Flow team.
@ -142,7 +142,7 @@ var w: string = baz(0);
" "
`; `;
exports[`nonflowfile.js 1`] = ` exports[`nonflowfile.js-flow 1`] = `
"// @noflow "// @noflow
module.exports = (x) => x; module.exports = (x) => x;
@ -153,7 +153,7 @@ module.exports = x => x;
" "
`; `;
exports[`propagate.js 1`] = ` exports[`propagate.js-flow 1`] = `
"// @flow "// @flow
declare class C { declare class C {
@ -208,7 +208,7 @@ function bar2(x: mixed) {
" "
`; `;
exports[`reach.js 1`] = ` exports[`reach.js-flow 1`] = `
"/** "/**
* like class and function values, any-typed values may be used in * like class and function values, any-typed values may be used in
* type annotations. Here we test propagation of any through the * type annotations. Here we test propagation of any through the

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Arith.js 1`] = ` exports[`Arith.js-flow 1`] = `
" "
/* @providesModule Arith */ /* @providesModule Arith */
@ -186,7 +186,7 @@ let tests = [
" "
`; `;
exports[`exponent.js 1`] = ` exports[`exponent.js-flow 1`] = `
"/* @flow */ "/* @flow */
let x: number = 2 ** 3; let x: number = 2 ** 3;
@ -213,7 +213,7 @@ y **= 2; // error
" "
`; `;
exports[`generic.js 1`] = ` exports[`generic.js-flow 1`] = `
"/* @flow */ "/* @flow */
function f<A>(a: A): A { return a + a; } // error function f<A>(a: A): A { return a + a; } // error
@ -242,7 +242,7 @@ function f<A, B>(a: A, b: B): B {
" "
`; `;
exports[`mult.js 1`] = ` exports[`mult.js-flow 1`] = `
"/* @flow */ "/* @flow */
function num(x:number) { } function num(x:number) { }
@ -271,7 +271,7 @@ y *= 2; // error
" "
`; `;
exports[`relational.js 1`] = ` exports[`relational.js-flow 1`] = `
"/* @flow */ "/* @flow */
(1 < 2); (1 < 2);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/* @flow */ "/* @flow */
function filterOutVoids<T> (arr: Array<?T>): Array<T> { function filterOutVoids<T> (arr: Array<?T>): Array<T> {
@ -23,7 +23,7 @@ function filterOutSmall(arr: Array<?number>): Array<?number> {
" "
`; `;
exports[`test2.js 1`] = ` exports[`test2.js-flow 1`] = `
"/* @flow */ "/* @flow */
function filterItems(items: Array<string|number>): Array<string|number> { function filterItems(items: Array<string|number>): Array<string|number> {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"var A = [1,2,3]; "var A = [1,2,3];
var B = [...A]; var B = [...A];
var C = [1,2,3]; var C = [1,2,3];

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`array_lib.js 1`] = ` exports[`array_lib.js-flow 1`] = `
"/* @flow */ "/* @flow */
function foo(x:string) { } function foo(x:string) { }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Arrays.js 1`] = ` exports[`Arrays.js-flow 1`] = `
" "
/* @providesModule Arrays */ /* @providesModule Arrays */
@ -82,7 +82,7 @@ module.exports = \\"arrays\\";
" "
`; `;
exports[`comments.js 1`] = ` exports[`comments.js-flow 1`] = `
"export type FileMetaData = [ "export type FileMetaData = [
/* id */ string, /* id */ string,
/* mtime */ number, /* mtime */ number,
@ -103,7 +103,7 @@ export type ModuleMetaData = [Path, /* type */ number];
" "
`; `;
exports[`numeric_elem.js 1`] = ` exports[`numeric_elem.js-flow 1`] = `
"var arr = []; "var arr = [];
var day = new Date; var day = new Date;
@ -122,7 +122,7 @@ arr[day] = 0;
" "
`; `;
exports[`union.js 1`] = ` exports[`union.js-flow 1`] = `
"let arr: (number|string)[] = []; "let arr: (number|string)[] = [];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
let arr: (number | string)[] = []; let arr: (number | string)[] = [];

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`advanced_arrows.js 1`] = ` exports[`advanced_arrows.js-flow 1`] = `
"/** "/**
* @flow * @flow
*/ */
@ -27,7 +27,7 @@ var ident = <T>(x: T): T => x;
" "
`; `;
exports[`arrows.js 1`] = ` exports[`arrows.js-flow 1`] = `
"function selectBestEffortImageForWidth( "function selectBestEffortImageForWidth(
maxWidth: number, maxWidth: number,
images: Array<Image> images: Array<Image>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`async.js 1`] = ` exports[`async.js-flow 1`] = `
"// @flow "// @flow
// \\"For async functions, a Promise<T> is returned, // \\"For async functions, a Promise<T> is returned,
@ -117,7 +117,7 @@ var objf: () => Promise<number> = obj.f;
" "
`; `;
exports[`async_base_class.js 1`] = ` exports[`async_base_class.js-flow 1`] = `
"// This is kind of weird, but it should parse. This works in babel without the "// This is kind of weird, but it should parse. This works in babel without the
// parens around (await promise). From the es6 and async/await specs I (nmote) // parens around (await promise). From the es6 and async/await specs I (nmote)
// am not clear on whether it should. In any case it's a strange corner case // am not clear on whether it should. In any case it's a strange corner case
@ -150,7 +150,7 @@ async function foo() {
" "
`; `;
exports[`async_parse.js 1`] = ` exports[`async_parse.js-flow 1`] = `
"async function f() {} "async function f() {}
async function ft<T>(a: T) {} async function ft<T>(a: T) {}
@ -203,7 +203,7 @@ var y = { async };
" "
`; `;
exports[`async_promise.js 1`] = ` exports[`async_promise.js-flow 1`] = `
"async function f(): Promise<number> { "async function f(): Promise<number> {
return Promise.resolve(1); return Promise.resolve(1);
} }
@ -214,7 +214,7 @@ async function f(): Promise<number> {
" "
`; `;
exports[`async_return_void.js 1`] = ` exports[`async_return_void.js-flow 1`] = `
"// @flow "// @flow
async function foo1(): Promise<string> { async function foo1(): Promise<string> {
@ -247,7 +247,7 @@ async function foo3(): Promise<string> {
" "
`; `;
exports[`async2.js 1`] = ` exports[`async2.js-flow 1`] = `
"// @flow "// @flow
// misc basic // misc basic
@ -374,7 +374,7 @@ function test5() {
" "
`; `;
exports[`async3.js 1`] = ` exports[`async3.js-flow 1`] = `
"// @flow "// @flow
/** /**
@ -442,7 +442,7 @@ async function baz() {
" "
`; `;
exports[`await_parse.js 1`] = ` exports[`await_parse.js-flow 1`] = `
"async function f() { await 1; } "async function f() { await 1; }
async function ft<T>(a: T) { await 1; } async function ft<T>(a: T) { await 1; }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`delegate_yield.js 1`] = ` exports[`delegate_yield.js-flow 1`] = `
"async function *delegate_next() { "async function *delegate_next() {
async function *inner() { async function *inner() {
var x: void = yield; // error: number ~> void var x: void = yield; // error: number ~> void
@ -57,7 +57,7 @@ async function* delegate_return() {
" "
`; `;
exports[`generator.js 1`] = ` exports[`generator.js-flow 1`] = `
"declare interface File { "declare interface File {
readLine(): Promise<string>; readLine(): Promise<string>;
close(): void; close(): void;
@ -112,7 +112,7 @@ async function f() {
" "
`; `;
exports[`return.js 1`] = ` exports[`return.js-flow 1`] = `
"declare var gen: AsyncGenerator<void,string,void>; "declare var gen: AsyncGenerator<void,string,void>;
// You can pass whatever you like to return, it doesn't need to be related to // You can pass whatever you like to return, it doesn't need to be related to
@ -161,7 +161,7 @@ refuse_return().return(\\"string\\").then(result => {
" "
`; `;
exports[`throw.js 1`] = ` exports[`throw.js-flow 1`] = `
"async function *catch_return() { "async function *catch_return() {
try { try {
yield 0; yield 0;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`customfun.js 1`] = ` exports[`customfun.js-flow 1`] = `
"// @flow "// @flow
declare var idx: $Facebookism$Idx; declare var idx: $Facebookism$Idx;
@ -27,7 +27,7 @@ m;
" "
`; `;
exports[`unknown.js 1`] = ` exports[`unknown.js-flow 1`] = `
"// @noflow "// @noflow
module.exports = { x: { y: \\"\\" } }; module.exports = { x: { y: \\"\\" } };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`client.js 1`] = ` exports[`client.js-flow 1`] = `
"var y:number = x; "var y:number = x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var y: number = x; var y: number = x;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lib.js 1`] = ` exports[`lib.js-flow 1`] = `
"declare var x: string; "declare var x: string;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
declare var x: string; declare var x: string;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`in.js 1`] = ` exports[`in.js-flow 1`] = `
"// @flow "// @flow
let tests = [ let tests = [

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`const.js 1`] = ` exports[`const.js-flow 1`] = `
"const x = 0; "const x = 0;
// errors: const cannot be reassigned // errors: const cannot be reassigned
@ -59,7 +59,7 @@ for (const { baz } of bazzes) {
" "
`; `;
exports[`rebinding.js 1`] = ` exports[`rebinding.js-flow 1`] = `
"/* @flow "/* @flow
* test errors on illegal rebinding/reassignment * test errors on illegal rebinding/reassignment
* *
@ -458,7 +458,7 @@ function fn_params_clash_fn_binding(x, y) {
" "
`; `;
exports[`scope.js 1`] = ` exports[`scope.js-flow 1`] = `
"function block_scope() { "function block_scope() {
let a: number = 0; let a: number = 0;
var b: number = 0; var b: number = 0;
@ -687,7 +687,7 @@ function default_param_2() {
" "
`; `;
exports[`tdz.js 1`] = ` exports[`tdz.js-flow 1`] = `
"/** @flow */ "/** @flow */
// -- types --- // -- types ---

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`FormData.js 1`] = ` exports[`FormData.js-flow 1`] = `
"/* @flow */ "/* @flow */
// constructor // constructor
@ -148,7 +148,7 @@ for (let [x, y]: [number, number] of a.entries()) {
" "
`; `;
exports[`MutationObserver.js 1`] = ` exports[`MutationObserver.js-flow 1`] = `
"/* @flow */ "/* @flow */
// constructor // constructor

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`scope.js 1`] = ` exports[`scope.js-flow 1`] = `
"function foo<X, Y:X>(x:X, y:Y):void { } "function foo<X, Y:X>(x:X, y:Y):void { }
foo(0, \\"\\"); foo(0, \\"\\");
@ -15,7 +15,7 @@ function bar<X: number, Y: X>(x: X, y: Y): number {
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"function foo<T: number>(x: T): T { "function foo<T: number>(x: T): T {
var _ = x * 1; // OK var _ = x * 1; // OK
var y: string = x; // error var y: string = x; // error

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break.js 1`] = ` exports[`break.js-flow 1`] = `
"function foo(b) { "function foo(b) {
var x = b ? null: false; var x = b ? null: false;
var z; var z;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"var o = Object.freeze({ foo: 0 }); "var o = Object.freeze({ foo: 0 });
(o.foo: string); (o.foo: string);
module.exports = o; module.exports = o;
@ -11,7 +11,7 @@ module.exports = o;
" "
`; `;
exports[`test2.js 1`] = ` exports[`test2.js-flow 1`] = `
"var o = require('./test'); "var o = require('./test');
(o.foo: string); (o.foo: string);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`array.js 1`] = ` exports[`array.js-flow 1`] = `
"var a = [\\"...\\"]; "var a = [\\"...\\"];
var b = a.map (function (x) { return 0; }); var b = a.map (function (x) { return 0; });
var c: string = b[0]; // error: number !~> string var c: string = b[0]; // error: number !~> string
@ -45,7 +45,7 @@ function g() {
" "
`; `;
exports[`genericfoo.js 1`] = ` exports[`genericfoo.js-flow 1`] = `
"class Foo<T> { "class Foo<T> {
x:T; x:T;
self():Foo<T> { return this; } self():Foo<T> { return this; }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"// You should be able to call objects with call properties "// You should be able to call objects with call properties
function a(f: { (): string }, g: { (x: number): string } ): string { function a(f: { (): string }, g: { (x: number): string } ): string {
return f() + g(123); return f() + g(123);
@ -65,7 +65,7 @@ function f(): number {
" "
`; `;
exports[`B.js 1`] = ` exports[`B.js-flow 1`] = `
"// You should be able to use a function as an object with a call property "// You should be able to use a function as an object with a call property
var a: { (x: number): string } = function (x: number): string { return \\"hi\\"; }; var a: { (x: number): string } = function (x: number): string { return \\"hi\\"; };
@ -124,7 +124,7 @@ var z: Object = function(x: number): string {
" "
`; `;
exports[`C.js 1`] = ` exports[`C.js-flow 1`] = `
"// You should be able to use an object as a function "// You should be able to use an object as a function
function a(x: { (z: number): string }): (z: number) => string { function a(x: { (z: number): string }): (z: number) => string {
return x; return x;
@ -197,7 +197,7 @@ function g(x: {}): Function {
" "
`; `;
exports[`D.js 1`] = ` exports[`D.js-flow 1`] = `
"// Multiple call properties should also be supported "// Multiple call properties should also be supported
function a(f: { (): string; (x: number): string }): string { function a(f: { (): string; (x: number): string }): string {
return f() + f(123); return f() + f(123);
@ -248,7 +248,7 @@ function e(x: { (): string, (x: number): string }): () => number {
" "
`; `;
exports[`E.js 1`] = ` exports[`E.js-flow 1`] = `
"// Expecting properties that don't exist should be an error "// Expecting properties that don't exist should be an error
var a : { someProp: number } = function () {}; var a : { someProp: number } = function () {};
@ -273,7 +273,7 @@ var c: { myProp: number } = f;
" "
`; `;
exports[`F.js 1`] = ` exports[`F.js-flow 1`] = `
"// You should be able to use an arrow function as an object with a call property "// You should be able to use an arrow function as an object with a call property
var a: { (x: number): string } = (x) => x.toString() var a: { (x: number): string } = (x) => x.toString()

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`optional.js 1`] = ` exports[`optional.js-flow 1`] = `
"type F = { "type F = {
(x: string): number; (x: string): number;
p?: string; p?: string;
@ -25,7 +25,7 @@ function f(x) {
" "
`; `;
exports[`primitives.js 1`] = ` exports[`primitives.js-flow 1`] = `
"var x = Boolean(4); "var x = Boolean(4);
function foo(fn:(value:any)=>boolean) { } function foo(fn:(value:any)=>boolean) { }
foo(Boolean); foo(Boolean);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`not_flow.js 1`] = ` exports[`not_flow.js-flow 1`] = `
"1 * 'foo'; "1 * 'foo';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 * \\"foo\\"; 1 * \\"foo\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`with_munging.js 1`] = ` exports[`with_munging.js-flow 1`] = `
"/** "/**
* @flow * @flow
*/ */
@ -35,7 +35,7 @@ class Bar extends Foo {
" "
`; `;
exports[`without_munging.js 1`] = ` exports[`without_munging.js-flow 1`] = `
"/** "/**
* @flow * @flow
* @preventMunge * @preventMunge

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"class A { "class A {
static x: number; static x: number;
static y: string; static y: string;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/* @flow */ "/* @flow */
class A {} class A {}
class B {} class B {}
@ -15,7 +15,7 @@ module.exports = { A, B };
" "
`; `;
exports[`test2.js 1`] = ` exports[`test2.js-flow 1`] = `
"/* @flow */ "/* @flow */
var I = require(\\"./test.js\\"); var I = require(\\"./test.js\\");
@ -34,7 +34,7 @@ var y: I.B = new C();
" "
`; `;
exports[`test3.js 1`] = ` exports[`test3.js-flow 1`] = `
"class A<X, Y, Z> {} "class A<X, Y, Z> {}
class B extends A<string, number, bool> {} class B extends A<string, number, bool> {}
class C<X, Y, Z> extends B {} class C<X, Y, Z> extends B {}
@ -51,7 +51,7 @@ var a: A<string, number, Array<boolean>> = c; // the third type arg is incorrect
" "
`; `;
exports[`test4.js 1`] = ` exports[`test4.js-flow 1`] = `
"class C<X> { x: X; } "class C<X> { x: X; }
function foo<X>(c: C<X>, x: X) { } function foo<X>(c: C<X>, x: X) { }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"class A { } "class A { }
function foo(x: Class<A>): A { function foo(x: Class<A>): A {
return new x(); // OK return new x(); // OK
@ -27,7 +27,7 @@ function bar(x: Class<B>): B {
" "
`; `;
exports[`test2.js 1`] = ` exports[`test2.js-flow 1`] = `
"// A function to typecheck values against their types. Covariance of Class<.> "// A function to typecheck values against their types. Covariance of Class<.>
// makes it useless in such a function (when limited to classes and instances), // makes it useless in such a function (when limited to classes and instances),
// since everything can be trivially satisfied by going to \`mixed\`. // since everything can be trivially satisfied by going to \`mixed\`.

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"class A { "class A {
foo(x:number):void { } foo(x:number):void { }
} }
@ -15,7 +15,7 @@ module.exports = A;
" "
`; `;
exports[`B.js 1`] = ` exports[`B.js-flow 1`] = `
"var A = require('./A'); "var A = require('./A');
class B extends A { } class B extends A { }
@ -36,7 +36,7 @@ module.exports = B;
" "
`; `;
exports[`C.js 1`] = ` exports[`C.js-flow 1`] = `
"var B = require('./B'); "var B = require('./B');
class C extends B { class C extends B {
@ -61,7 +61,7 @@ module.exports = C;
" "
`; `;
exports[`D.js 1`] = ` exports[`D.js-flow 1`] = `
"class D { } "class D { }
class E { } class E { }
new E().x new E().x
@ -72,7 +72,7 @@ new E().x;
" "
`; `;
exports[`class_shapes.js 1`] = ` exports[`class_shapes.js-flow 1`] = `
"/* @flow */ "/* @flow */
type Foo = { type Foo = {
@ -147,7 +147,7 @@ var w: Foo = z;
" "
`; `;
exports[`expr.js 1`] = ` exports[`expr.js-flow 1`] = `
"var Bar = class Foo { "var Bar = class Foo {
static factory(): Foo { // OK: Foo is a type in this scope static factory(): Foo { // OK: Foo is a type in this scope
return new Foo() // OK: Foo is a runtime binding in this scope return new Foo() // OK: Foo is a runtime binding in this scope
@ -213,7 +213,7 @@ var alias2: Alias = _Alias.factory(); // error: bad pun
" "
`; `;
exports[`loc.js 1`] = ` exports[`loc.js-flow 1`] = `
"/* @flow */ "/* @flow */
type Foo = number type Foo = number
@ -228,7 +228,7 @@ class Foo {} // error, shadows type Foo
" "
`; `;
exports[`statics.js 1`] = ` exports[`statics.js-flow 1`] = `
"/* @flow */ "/* @flow */
class C { class C {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Closure.js 1`] = ` exports[`Closure.js-flow 1`] = `
"/*** "/***
* Test tracking of variable types across closure calls. * Test tracking of variable types across closure calls.
* @flow * @flow
@ -171,7 +171,7 @@ function local_meth() {
" "
`; `;
exports[`cond_havoc.js 1`] = ` exports[`cond_havoc.js-flow 1`] = `
"// @flow "// @flow
// from sam, https://github.com/facebook/flow/issues/780 // from sam, https://github.com/facebook/flow/issues/780
@ -204,7 +204,7 @@ function example(b: boolean): number {
" "
`; `;
exports[`const.js 1`] = ` exports[`const.js-flow 1`] = `
"/*** "/***
* consts retain refinements * consts retain refinements
* @flow * @flow

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Abs.js 1`] = ` exports[`Abs.js-flow 1`] = `
" "
function f(x:string) { } function f(x:string) { }
@ -12,7 +12,7 @@ module.exports = f;
" "
`; `;
exports[`Rel.js 1`] = ` exports[`Rel.js-flow 1`] = `
" "
var f = require('./Abs'); var f = require('./Abs');

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"var ColorId = { "var ColorId = {
RED: 'R', RED: 'R',
GREEN: 'G', GREEN: 'G',
@ -51,7 +51,7 @@ module.exports = { ColorId, ColorNumber };
" "
`; `;
exports[`test2.js 1`] = ` exports[`test2.js-flow 1`] = `
"var { ColorId, ColorNumber } = require('./test'); "var { ColorId, ColorNumber } = require('./test');
var ColorIdToNumber = { var ColorIdToNumber = {
[ColorId.RED]: ColorNumber.RED, [ColorId.RED]: ColorNumber.RED,
@ -76,7 +76,7 @@ module.exports = ColorIdToNumber;
" "
`; `;
exports[`test3.js 1`] = ` exports[`test3.js-flow 1`] = `
"var { ColorId } = require('./test'); "var { ColorId } = require('./test');
var ColorIdToNumber = require('./test2'); var ColorIdToNumber = require('./test2');
@ -89,14 +89,14 @@ var ColorIdToNumber = require(\\"./test2\\");
" "
`; `;
exports[`test4.js 1`] = ` exports[`test4.js-flow 1`] = `
"module.exports = 'hello'; "module.exports = 'hello';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module.exports = \\"hello\\"; module.exports = \\"hello\\";
" "
`; `;
exports[`test5.js 1`] = ` exports[`test5.js-flow 1`] = `
"var hello = require('./test4'); "var hello = require('./test4');
var dummy = require('./test'); var dummy = require('./test');
module.exports = { module.exports = {
@ -115,7 +115,7 @@ module.exports = {
" "
`; `;
exports[`test6.js 1`] = ` exports[`test6.js-flow 1`] = `
"var o = require('./test5'); "var o = require('./test5');
(o.hello: 'nothing'); // oops (o.hello: 'nothing'); // oops
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -124,7 +124,7 @@ var o = require(\\"./test5\\");
" "
`; `;
exports[`test7.js 1`] = ` exports[`test7.js-flow 1`] = `
"var obj = {x: 0, m() { return this.x }} "var obj = {x: 0, m() { return this.x }}
var x: string = obj['m'](); // error, number ~> string var x: string = obj['m'](); // error, number ~> string

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`conditional.js 1`] = ` exports[`conditional.js-flow 1`] = `
"/* @flow */ "/* @flow */
function a(): number { function a(): number {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no_at_flow.js 1`] = ` exports[`no_at_flow.js-flow 1`] = `
"var x: number = \\"not a number\\"; // Error: string ~> number "var x: number = \\"not a number\\"; // Error: string ~> number
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var x: number = \\"not a number\\"; // Error: string ~> number var x: number = \\"not a number\\"; // Error: string ~> number

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no_at_flow.js 1`] = ` exports[`no_at_flow.js-flow 1`] = `
"var x: number = \\"not a number\\"; // No error "var x: number = \\"not a number\\"; // No error
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var x: number = \\"not a number\\"; // No error var x: number = \\"not a number\\"; // No error

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no_at_flow.js 1`] = ` exports[`no_at_flow.js-flow 1`] = `
"var x; "var x;
x.length; x.length;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/* "/*
* @flow * @flow
*/ */

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`foo.js 1`] = ` exports[`foo.js-flow 1`] = `
"/* @flow */ "/* @flow */
// No error, this file is ignored // No error, this file is ignored

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`foo.js 1`] = ` exports[`foo.js-flow 1`] = `
"/* @flow */ "/* @flow */
var x: number = \\"string\\"; // Error string ~> number var x: number = \\"string\\"; // Error string ~> number

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`main.js 1`] = ` exports[`main.js-flow 1`] = `
"// @flow "// @flow
import {test} from 'testmodule'; import {test} from 'testmodule';

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`testmodule.js 1`] = ` exports[`testmodule.js-flow 1`] = `
"// @flow "// @flow
export let test = 42; export let test = 42;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"// @flow "// @flow
import {className} from \\"./SomeCSSFile.css\\"; import {className} from \\"./SomeCSSFile.css\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"/* @flow */ "/* @flow */
var m1 = require('1DoesntExist'); var m1 = require('1DoesntExist');
@ -31,7 +31,7 @@ import { numVal as numVal2 } from \\"3DoesntExist\\"; // Error
" "
`; `;
exports[`Exists.js 1`] = ` exports[`Exists.js-flow 1`] = `
"/** "/**
* @providesModule Exists * @providesModule Exists
* @flow * @flow

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"/* @flow */ "/* @flow */
var m1 = require('./1DoesntExist'); var m1 = require('./1DoesntExist');
@ -55,7 +55,7 @@ var c_4: string = numVal3; // Error: number ~> string
" "
`; `;
exports[`Exists.js 1`] = ` exports[`Exists.js-flow 1`] = `
"/* @flow */ "/* @flow */
module.exports = { module.exports = {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`toplevel.js 1`] = ` exports[`toplevel.js-flow 1`] = `
"// @flow "// @flow
import {name} from \\"testproj\\"; import {name} from \\"testproj\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index.js 1`] = ` exports[`index.js-flow 1`] = `
"// @flow "// @flow
export var name: \\"otherdir/testproj\\" = \\"otherdir/testproj\\"; export var name: \\"otherdir/testproj\\" = \\"otherdir/testproj\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index.js 1`] = ` exports[`index.js-flow 1`] = `
"// @flow "// @flow
export var name: \\"otherdir/testproj2\\" = \\"otherdir/testproj2\\"; export var name: \\"otherdir/testproj2\\" = \\"otherdir/testproj2\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`sublevel.js 1`] = ` exports[`sublevel.js-flow 1`] = `
"// @flow "// @flow
import {name} from \\"testproj2\\"; import {name} from \\"testproj2\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index.js 1`] = ` exports[`index.js-flow 1`] = `
"// @flow "// @flow
export var name: \\"subdir/custom_resolve_dir/testproj2\\" = \\"subdir/custom_resolve_dir/testproj2\\"; export var name: \\"subdir/custom_resolve_dir/testproj2\\" = \\"subdir/custom_resolve_dir/testproj2\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`chain.js 1`] = ` exports[`chain.js-flow 1`] = `
"/* @flow */ "/* @flow */
class A { class A {
@ -73,7 +73,7 @@ B._sProperty = \\"B._sProperty string\\";
" "
`; `;
exports[`commonjs_export.js 1`] = ` exports[`commonjs_export.js-flow 1`] = `
"/* @flow */ "/* @flow */
class C { class C {
@ -92,7 +92,7 @@ module.exports = new C();
" "
`; `;
exports[`commonjs_import.js 1`] = ` exports[`commonjs_import.js-flow 1`] = `
"/* @flow */ "/* @flow */
import {_p} from \\"./commonjs_export\\"; import {_p} from \\"./commonjs_export\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`chain.js 1`] = ` exports[`chain.js-flow 1`] = `
"/* @flow */ "/* @flow */
class A { class A {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/** "/**
* test handling of const params * test handling of const params
* - reassignment prohibited * - reassignment prohibited

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`constructor.js 1`] = ` exports[`constructor.js-flow 1`] = `
"class C { "class C {
constructor() { } constructor() { }
} }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`constructors.js 1`] = ` exports[`constructors.js-flow 1`] = `
"// Foo is a class-like function "// Foo is a class-like function
function Foo() { function Foo() {
this.x = 0; // constructs objects with property x this.x = 0; // constructs objects with property x
@ -51,7 +51,7 @@ exports.Foo2 = (Foo: Class<IFoo>);
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"var Foo = require('./constructors').Foo; "var Foo = require('./constructors').Foo;
var x: string = new Foo().x; // error, found number instead of string var x: string = new Foo().x; // error, found number instead of string
var y: string = Foo.y; // error, found number instead of string var y: string = Foo.y; // error, found number instead of string

View File

@ -1,11 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`dummy.js 1`] = ` exports[`dummy.js-flow 1`] = `
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"require('./dummy'); "require('./dummy');
var xxx = 0; var xxx = 0;
xxx xxx

View File

@ -1,11 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`dummy.js 1`] = ` exports[`dummy.js-flow 1`] = `
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"require('./dummy'); "require('./dummy');
var xxx = 0; var xxx = 0;
xxx xxx

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`boolean.js 1`] = ` exports[`boolean.js-flow 1`] = `
"// @flow "// @flow
// Boolean (the class) tests. booleans (the literals) are not part of core.js // Boolean (the class) tests. booleans (the literals) are not part of core.js
@ -89,7 +89,7 @@ let tests = [
" "
`; `;
exports[`map.js 1`] = ` exports[`map.js-flow 1`] = `
"// @flow "// @flow
function* generator(): Iterable<[string, number]> { function* generator(): Iterable<[string, number]> {
@ -158,7 +158,7 @@ let tests = [
" "
`; `;
exports[`regexp.js 1`] = ` exports[`regexp.js-flow 1`] = `
"// @flow "// @flow
let tests = [ let tests = [
@ -221,7 +221,7 @@ let tests = [
" "
`; `;
exports[`weakset.js 1`] = ` exports[`weakset.js-flow 1`] = `
"// @flow "// @flow
let ws = new WeakSet(); let ws = new WeakSet();

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"type CovArrayVerbose<X,Y:X> = Array<Y>; "type CovArrayVerbose<X,Y:X> = Array<Y>;
var b: CovArrayVerbose<number,*> = []; var b: CovArrayVerbose<number,*> = [];
var y: CovArrayVerbose<mixed,*> = b; var y: CovArrayVerbose<mixed,*> = b;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`crash.js 1`] = ` exports[`crash.js-flow 1`] = `
"// This file triggers a violation of the \\"disjoint-or-nested ranges invariant\\" "// This file triggers a violation of the \\"disjoint-or-nested ranges invariant\\"
// that we implicitly assume in type-at-pos and coverage implementations. In // that we implicitly assume in type-at-pos and coverage implementations. In
// particular, when unchecked it causes a crash with coverage --color. // particular, when unchecked it causes a crash with coverage --color.
@ -25,7 +25,7 @@ declare module bar {
" "
`; `;
exports[`declare_module.js 1`] = ` exports[`declare_module.js-flow 1`] = `
"// check coverage of declare module "// check coverage of declare module
declare module foo { declare module foo {
@ -38,7 +38,7 @@ declare module foo {
" "
`; `;
exports[`no_pragma.js 1`] = ` exports[`no_pragma.js-flow 1`] = `
"let x = 0; "let x = 0;
(x: string); (x: string);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -47,7 +47,7 @@ let x = 0;
" "
`; `;
exports[`non-termination.js 1`] = ` exports[`non-termination.js-flow 1`] = `
"// This file triggers a violation of the \\"disjoint-or-nested ranges invariant\\" "// This file triggers a violation of the \\"disjoint-or-nested ranges invariant\\"
// that we implicitly assume in type-at-pos and coverage implementations. In // that we implicitly assume in type-at-pos and coverage implementations. In
// particular, when unchecked it causes non-termination with coverage --color. // particular, when unchecked it causes non-termination with coverage --color.

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"var B = require('./B'); "var B = require('./B');
class A extends B { } class A extends B { }
@ -15,7 +15,7 @@ module.exports = A;
" "
`; `;
exports[`B.js 1`] = ` exports[`B.js-flow 1`] = `
"var A = require('./A'); "var A = require('./A');
//class B extends A { } //class B extends A { }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`date.js 1`] = ` exports[`date.js-flow 1`] = `
"var d = new Date(0); "var d = new Date(0);
var x:string = d.getTime(); var x:string = d.getTime();

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`ExplicitProvidesModuleDifferentName.js 1`] = ` exports[`ExplicitProvidesModuleDifferentName.js-flow 1`] = `
"/* "/*
* @providesModule ExplicitProvidesModuleDifferentName * @providesModule ExplicitProvidesModuleDifferentName
* @flow * @flow
@ -17,7 +17,7 @@ module.exports.fun = (): string => \\"hello there\\";
" "
`; `;
exports[`ExplicitProvidesModuleSameName.js 1`] = ` exports[`ExplicitProvidesModuleSameName.js-flow 1`] = `
"/* "/*
* @providesModule ExplicitProvidesModuleSameName * @providesModule ExplicitProvidesModuleSameName
* @flow * @flow
@ -34,7 +34,7 @@ module.exports.fun = (): string => \\"hello there\\";
" "
`; `;
exports[`ImplicitProvidesModule.js 1`] = ` exports[`ImplicitProvidesModule.js-flow 1`] = `
"/* "/*
* @providesModule ImplicitProvidesModule * @providesModule ImplicitProvidesModule
* @flow * @flow
@ -51,14 +51,14 @@ module.exports.fun = (): string => \\"hello there\\";
" "
`; `;
exports[`md5.js 1`] = ` exports[`md5.js-flow 1`] = `
"/* @providesModule md5 */ "/* @providesModule md5 */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* @providesModule md5 */ /* @providesModule md5 */
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/* @flow */ "/* @flow */
var Implicit = require('ImplicitProvidesModule'); var Implicit = require('ImplicitProvidesModule');

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`min.js 1`] = ` exports[`min.js-flow 1`] = `
"module.exports.fun = (): string => \\"hello there\\"; "module.exports.fun = (): string => \\"hello there\\";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
module.exports.fun = (): string => \\"hello there\\"; module.exports.fun = (): string => \\"hello there\\";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`nested_test.js 1`] = ` exports[`nested_test.js-flow 1`] = `
"/* @flow */ "/* @flow */
var docblock = require('qux/docblock'); var docblock = require('qux/docblock');

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`index.js 1`] = ` exports[`index.js-flow 1`] = `
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" "
`; `;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`client.js 1`] = ` exports[`client.js-flow 1`] = `
"var ws = require('../'); "var ws = require('../');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var ws = require(\\"../\\"); var ws = require(\\"../\\");

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = ` exports[`A.js-flow 1`] = `
"/* @providesModule A */ "/* @providesModule A */
class Implementation {} class Implementation {}
export function foo(): Implementation { return new Implementation; } export function foo(): Implementation { return new Implementation; }
@ -13,7 +13,7 @@ export function foo(): Implementation {
" "
`; `;
exports[`ExplicitProvidesModuleDifferentName.js 1`] = ` exports[`ExplicitProvidesModuleDifferentName.js-flow 1`] = `
"/* "/*
* @providesModule ExplicitProvidesModuleDifferentName * @providesModule ExplicitProvidesModuleDifferentName
* @flow * @flow
@ -32,7 +32,7 @@ module.exports.fun = (): Implementation => new Implementation();
" "
`; `;
exports[`ExplicitProvidesModuleSameName.js 1`] = ` exports[`ExplicitProvidesModuleSameName.js-flow 1`] = `
"/* "/*
* @providesModule ExplicitProvidesModuleSameName * @providesModule ExplicitProvidesModuleSameName
* @flow * @flow
@ -51,7 +51,7 @@ module.exports.fun = (): Implementation => new Implementation();
" "
`; `;
exports[`ImplicitProvidesModule.js 1`] = ` exports[`ImplicitProvidesModule.js-flow 1`] = `
"/* "/*
* @providesModule ImplicitProvidesModule * @providesModule ImplicitProvidesModule
* @flow * @flow
@ -70,14 +70,14 @@ module.exports.fun = (): Implementation => new Implementation();
" "
`; `;
exports[`md5.js 1`] = ` exports[`md5.js-flow 1`] = `
"/* @providesModule md5 */ "/* @providesModule md5 */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* @providesModule md5 */ /* @providesModule md5 */
" "
`; `;
exports[`test.js 1`] = ` exports[`test.js-flow 1`] = `
"/* @flow */ "/* @flow */
var Implicit = require('ImplicitProvidesModule'); var Implicit = require('ImplicitProvidesModule');

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`min.js 1`] = ` exports[`min.js-flow 1`] = `
"class Implementation {} "class Implementation {}
module.exports.fun = (): Implementation => new Implementation; module.exports.fun = (): Implementation => new Implementation;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`nested_test.js 1`] = ` exports[`nested_test.js-flow 1`] = `
"/* @flow */ "/* @flow */
var docblock = require('qux/docblock'); var docblock = require('qux/docblock');

Some files were not shown because too many files have changed in this diff Show More