Skip to content

Instantly share code, notes, and snippets.

@devenbansod
Created March 7, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devenbansod/2d70d53e9d920ad77462a867c6937c83 to your computer and use it in GitHub Desktop.
Save devenbansod/2d70d53e9d920ad77462a867c6937c83 to your computer and use it in GitHub Desktop.
Errors while running parse.js tests

First error

FAIL packages/babel-core/test/parse.js ● parse › should parse using configuration from .babelrc when a filename is provided

expect(received).toEqual(expected)

Expected value to equal:
  {"comments": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "program": {"body": [{"body": {"body": [], "end": 29, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 14, "line": 2}}, "start": 26, "type": "ClassBody"}, "decorators": [{"end": 11, "expression": {"end": 11, "loc": {"end": {"column": 11, "line": 1}, "identifierName": "annotation", "start": {"column": 1, "line": 1}}, "name": "annotation", "start": 1, "type": "Identifier"}, "loc": {"end": {"column": 11, "line": 1}, "start": {"column": 0, "line": 1}}, "start": 0, "type": "Decorator"}], "end": 29, "id": {"end": 25, "loc": {"end": {"column": 13, "line": 2}, "identifierName": "MyClass", "start": {"column": 6, "line": 2}}, "name": "MyClass", "start": 18, "type": "Identifier"}, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 0, "line": 1}}, "start": 0, "superClass": null, "type": "ClassDeclaration"}, {"async": false, "body": {"body": [{"end": 88, "expression": {"end": 87, "left": {"computed": false, "end": 80, "loc": {"end": [Object], "start": [Object]}, "object": {"end": 70, "loc": [Object], "name": "target", "start": 64, "type": "Identifier"}, "property": {"end": 80, "loc": [Object], "name": "annotated", "start": 71, "type": "Identifier"}, "start": 64, "type": "MemberExpression"}, "loc": {"end": {"column": 26, "line": 5}, "start": {"column": 3, "line": 5}}, "operator": "=", "right": {"end": 87, "loc": {"end": [Object], "start": [Object]}, "start": 83, "type": "BooleanLiteral", "value": true}, "start": 64, "type": "AssignmentExpression"}, "loc": {"end": {"column": 27, "line": 5}, "start": {"column": 3, "line": 5}}, "start": 64, "type": "ExpressionStatement"}], "directives": [], "end": 90, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 28, "line": 4}}, "start": 59, "type": "BlockStatement"}, "end": 90, "expression": false, "generator": false, "id": {"end": 50, "loc": {"end": {"column": 19, "line": 4}, "identifierName": "annotation", "start": {"column": 9, "line": 4}}, "name": "annotation", "start": 40, "type": "Identifier"}, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 0, "line": 4}}, "params": [{"end": 57, "loc": {"end": {"column": 26, "line": 4}, "identifierName": "target", "start": {"column": 20, "line": 4}}, "name": "target", "start": 51, "type": "Identifier"}], "start": 31, "type": "FunctionDeclaration"}], "directives": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "sourceType": "module", "start": 0, "type": "Program"}, "start": 0, "type": "File"}
Received:
  {"comments": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "program": {"body": [{"body": {"body": [], "end": 29, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 14, "line": 2}}, "start": 26, "type": "ClassBody"}, "decorators": [{"end": 11, "expression": {"end": 11, "loc": {"end": {"column": 11, "line": 1}, "identifierName": "annotation", "start": {"column": 1, "line": 1}}, "name": "annotation", "start": 1, "type": "Identifier"}, "loc": {"end": {"column": 11, "line": 1}, "start": {"column": 0, "line": 1}}, "start": 0, "type": "Decorator"}], "end": 29, "id": {"end": 25, "loc": {"end": {"column": 13, "line": 2}, "identifierName": "MyClass", "start": {"column": 6, "line": 2}}, "name": "MyClass", "start": 18, "type": "Identifier"}, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 0, "line": 1}}, "start": 0, "superClass": null, "type": "ClassDeclaration"}, {"async": false, "body": {"body": [{"end": 88, "expression": {"end": 87, "left": {"computed": false, "end": 80, "loc": {"end": [Position], "start": [Position]}, "object": {"end": 70, "loc": [SourceLocation], "name": "target", "start": 64, "type": "Identifier"}, "property": {"end": 80, "loc": [SourceLocation], "name": "annotated", "start": 71, "type": "Identifier"}, "start": 64, "type": "MemberExpression"}, "loc": {"end": {"column": 26, "line": 5}, "start": {"column": 3, "line": 5}}, "operator": "=", "right": {"end": 87, "loc": {"end": [Position], "start": [Position]}, "start": 83, "type": "BooleanLiteral", "value": true}, "start": 64, "type": "AssignmentExpression"}, "loc": {"end": {"column": 27, "line": 5}, "start": {"column": 3, "line": 5}}, "start": 64, "type": "ExpressionStatement"}], "directives": [], "end": 90, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 28, "line": 4}}, "start": 59, "type": "BlockStatement"}, "end": 90, "generator": false, "id": {"end": 50, "loc": {"end": {"column": 19, "line": 4}, "identifierName": "annotation", "start": {"column": 9, "line": 4}}, "name": "annotation", "start": 40, "type": "Identifier"}, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 0, "line": 4}}, "params": [{"end": 57, "loc": {"end": {"column": 26, "line": 4}, "identifierName": "target", "start": {"column": 20, "line": 4}}, "name": "target", "start": 51, "type": "Identifier"}], "start": 31, "type": "FunctionDeclaration"}], "directives": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "sourceType": "module", "start": 0, "type": "Program"}, "start": 0, "type": "File"}

Difference:

- Expected
+ Received

@@ -1,150 +1,150 @@
- Object {
+ Node {
    "comments": Array [],
    "end": 91,
-   "loc": Object {
-     "end": Object {
+   "loc": SourceLocation {
+     "end": Position {
        "column": 0,
        "line": 7,
      },
-     "start": Object {
+     "start": Position {
        "column": 0,
        "line": 1,
      },
    },
-   "program": Object {
+   "program": Node {
      "body": Array [
-       Object {
-         "body": Object {
+       Node {
+         "body": Node {
            "body": Array [],
            "end": 29,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 17,
                "line": 2,
              },
-             "start": Object {
+             "start": Position {
                "column": 14,
                "line": 2,
              },
            },
            "start": 26,
            "type": "ClassBody",
          },
          "decorators": Array [
-           Object {
+           Node {
              "end": 11,
-             "expression": Object {
+             "expression": Node {
                "end": 11,
-               "loc": Object {
-                 "end": Object {
+               "loc": SourceLocation {
+                 "end": Position {
                    "column": 11,
                    "line": 1,
                  },
                  "identifierName": "annotation",
-                 "start": Object {
+                 "start": Position {
                    "column": 1,
                    "line": 1,
                  },
                },
                "name": "annotation",
                "start": 1,
                "type": "Identifier",
              },
-             "loc": Object {
-               "end": Object {
+             "loc": SourceLocation {
+               "end": Position {
                  "column": 11,
                  "line": 1,
                },
-               "start": Object {
+               "start": Position {
                  "column": 0,
                  "line": 1,
                },
              },
              "start": 0,
              "type": "Decorator",
            },
          ],
          "end": 29,
-         "id": Object {
+         "id": Node {
            "end": 25,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 13,
                "line": 2,
              },
              "identifierName": "MyClass",
-             "start": Object {
+             "start": Position {
                "column": 6,
                "line": 2,
              },
            },
            "name": "MyClass",
            "start": 18,
            "type": "Identifier",
          },
-         "loc": Object {
-           "end": Object {
+         "loc": SourceLocation {
+           "end": Position {
              "column": 17,
              "line": 2,
            },
-           "start": Object {
+           "start": Position {
              "column": 0,
              "line": 1,
            },
          },
          "start": 0,
          "superClass": null,
          "type": "ClassDeclaration",
        },
-       Object {
+       Node {
          "async": false,
-         "body": Object {
+         "body": Node {
            "body": Array [
-             Object {
+             Node {
                "end": 88,
-               "expression": Object {
+               "expression": Node {
                  "end": 87,
-                 "left": Object {
+                 "left": Node {
                    "computed": false,
                    "end": 80,
-                   "loc": Object {
-                     "end": Object {
+                   "loc": SourceLocation {
+                     "end": Position {
                        "column": 19,
                        "line": 5,
                      },
-                     "start": Object {
+                     "start": Position {
                        "column": 3,
                        "line": 5,
                      },
                    },
-                   "object": Object {
+                   "object": Node {
                      "end": 70,
-                     "loc": Object {
-                       "end": Object {
+                     "loc": SourceLocation {
+                       "end": Position {
                          "column": 9,
                          "line": 5,
                        },
                        "identifierName": "target",
-                       "start": Object {
+                       "start": Position {
                          "column": 3,
                          "line": 5,
                        },
                      },
                      "name": "target",
                      "start": 64,
                      "type": "Identifier",
                    },
-                   "property": Object {
+                   "property": Node {
                      "end": 80,
-                     "loc": Object {
-                       "end": Object {
+                     "loc": SourceLocation {
+                       "end": Position {
                          "column": 19,
                          "line": 5,
                        },
                        "identifierName": "annotated",
-                       "start": Object {
+                       "start": Position {
                          "column": 10,
                          "line": 5,
                        },
                      },
                      "name": "annotated",
@@ -152,29 +152,29 @@
                      "type": "Identifier",
                    },
                    "start": 64,
                    "type": "MemberExpression",
                  },
-                 "loc": Object {
-                   "end": Object {
+                 "loc": SourceLocation {
+                   "end": Position {
                      "column": 26,
                      "line": 5,
                    },
-                   "start": Object {
+                   "start": Position {
                      "column": 3,
                      "line": 5,
                    },
                  },
                  "operator": "=",
-                 "right": Object {
+                 "right": Node {
                    "end": 87,
-                   "loc": Object {
-                     "end": Object {
+                   "loc": SourceLocation {
+                     "end": Position {
                        "column": 26,
                        "line": 5,
                      },
-                     "start": Object {
+                     "start": Position {
                        "column": 22,
                        "line": 5,
                      },
                    },
                    "start": 83,
@@ -182,79 +182,78 @@
                    "value": true,
                  },
                  "start": 64,
                  "type": "AssignmentExpression",
                },
-               "loc": Object {
-                 "end": Object {
+               "loc": SourceLocation {
+                 "end": Position {
                    "column": 27,
                    "line": 5,
                  },
-                 "start": Object {
+                 "start": Position {
                    "column": 3,
                    "line": 5,
                  },
                },
                "start": 64,
                "type": "ExpressionStatement",
              },
            ],
            "directives": Array [],
            "end": 90,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 1,
                "line": 6,
              },
-             "start": Object {
+             "start": Position {
                "column": 28,
                "line": 4,
              },
            },
            "start": 59,
            "type": "BlockStatement",
          },
          "end": 90,
-         "expression": false,
          "generator": false,
-         "id": Object {
+         "id": Node {
            "end": 50,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 19,
                "line": 4,
              },
              "identifierName": "annotation",
-             "start": Object {
+             "start": Position {
                "column": 9,
                "line": 4,
              },
            },
            "name": "annotation",
            "start": 40,
            "type": "Identifier",
          },
-         "loc": Object {
-           "end": Object {
+         "loc": SourceLocation {
+           "end": Position {
              "column": 1,
              "line": 6,
            },
-           "start": Object {
+           "start": Position {
              "column": 0,
              "line": 4,
            },
          },
          "params": Array [
-           Object {
+           Node {
              "end": 57,
-             "loc": Object {
-               "end": Object {
+             "loc": SourceLocation {
+               "end": Position {
                  "column": 26,
                  "line": 4,
                },
                "identifierName": "target",
-               "start": Object {
+               "start": Position {
                  "column": 20,
                  "line": 4,
                },
              },
              "name": "target",
@@ -266,16 +265,16 @@
          "type": "FunctionDeclaration",
        },
      ],
      "directives": Array [],
      "end": 91,
-     "loc": Object {
-       "end": Object {
+     "loc": SourceLocation {
+       "end": Position {
          "column": 0,
          "line": 7,
        },
-       "start": Object {
+       "start": Position {
          "column": 0,
          "line": 1,
        },
      },
      "sourceType": "module",

  13 |     expect(
  14 |       parse(input, { filename: fixture("input.js"), cwd: fixture() }),
> 15 |     ).toEqual(output);
  16 |   });
  17 | 
  18 |   // it("should parse using passed in configuration", function() {
  
  at Object.<anonymous> (packages/babel-core/test/parse.js:15:7)

Second Error

FAIL packages/babel-core/test/parse.js ● parse › should parse using passed in configuration

expect(received).toEqual(expected)

Expected value to equal:
  {"comments": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "program": {"body": [{"body": {"body": [], "end": 29, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 14, "line": 2}}, "start": 26, "type": "ClassBody"}, "decorators": [{"end": 11, "expression": {"end": 11, "loc": {"end": {"column": 11, "line": 1}, "identifierName": "annotation", "start": {"column": 1, "line": 1}}, "name": "annotation", "start": 1, "type": "Identifier"}, "loc": {"end": {"column": 11, "line": 1}, "start": {"column": 0, "line": 1}}, "start": 0, "type": "Decorator"}], "end": 29, "id": {"end": 25, "loc": {"end": {"column": 13, "line": 2}, "identifierName": "MyClass", "start": {"column": 6, "line": 2}}, "name": "MyClass", "start": 18, "type": "Identifier"}, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 0, "line": 1}}, "start": 0, "superClass": null, "type": "ClassDeclaration"}, {"async": false, "body": {"body": [{"end": 88, "expression": {"end": 87, "left": {"computed": false, "end": 80, "loc": {"end": [Object], "start": [Object]}, "object": {"end": 70, "loc": [Object], "name": "target", "start": 64, "type": "Identifier"}, "property": {"end": 80, "loc": [Object], "name": "annotated", "start": 71, "type": "Identifier"}, "start": 64, "type": "MemberExpression"}, "loc": {"end": {"column": 26, "line": 5}, "start": {"column": 3, "line": 5}}, "operator": "=", "right": {"end": 87, "loc": {"end": [Object], "start": [Object]}, "start": 83, "type": "BooleanLiteral", "value": true}, "start": 64, "type": "AssignmentExpression"}, "loc": {"end": {"column": 27, "line": 5}, "start": {"column": 3, "line": 5}}, "start": 64, "type": "ExpressionStatement"}], "directives": [], "end": 90, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 28, "line": 4}}, "start": 59, "type": "BlockStatement"}, "end": 90, "expression": false, "generator": false, "id": {"end": 50, "loc": {"end": {"column": 19, "line": 4}, "identifierName": "annotation", "start": {"column": 9, "line": 4}}, "name": "annotation", "start": 40, "type": "Identifier"}, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 0, "line": 4}}, "params": [{"end": 57, "loc": {"end": {"column": 26, "line": 4}, "identifierName": "target", "start": {"column": 20, "line": 4}}, "name": "target", "start": 51, "type": "Identifier"}], "start": 31, "type": "FunctionDeclaration"}], "directives": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "sourceType": "module", "start": 0, "type": "Program"}, "start": 0, "type": "File"}
Received:
  {"comments": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "program": {"body": [{"body": {"body": [], "end": 29, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 14, "line": 2}}, "start": 26, "type": "ClassBody"}, "decorators": [{"end": 11, "expression": {"end": 11, "loc": {"end": {"column": 11, "line": 1}, "identifierName": "annotation", "start": {"column": 1, "line": 1}}, "name": "annotation", "start": 1, "type": "Identifier"}, "loc": {"end": {"column": 11, "line": 1}, "start": {"column": 0, "line": 1}}, "start": 0, "type": "Decorator"}], "end": 29, "id": {"end": 25, "loc": {"end": {"column": 13, "line": 2}, "identifierName": "MyClass", "start": {"column": 6, "line": 2}}, "name": "MyClass", "start": 18, "type": "Identifier"}, "loc": {"end": {"column": 17, "line": 2}, "start": {"column": 0, "line": 1}}, "start": 0, "superClass": null, "type": "ClassDeclaration"}, {"async": false, "body": {"body": [{"end": 88, "expression": {"end": 87, "left": {"computed": false, "end": 80, "loc": {"end": [Position], "start": [Position]}, "object": {"end": 70, "loc": [SourceLocation], "name": "target", "start": 64, "type": "Identifier"}, "property": {"end": 80, "loc": [SourceLocation], "name": "annotated", "start": 71, "type": "Identifier"}, "start": 64, "type": "MemberExpression"}, "loc": {"end": {"column": 26, "line": 5}, "start": {"column": 3, "line": 5}}, "operator": "=", "right": {"end": 87, "loc": {"end": [Position], "start": [Position]}, "start": 83, "type": "BooleanLiteral", "value": true}, "start": 64, "type": "AssignmentExpression"}, "loc": {"end": {"column": 27, "line": 5}, "start": {"column": 3, "line": 5}}, "start": 64, "type": "ExpressionStatement"}], "directives": [], "end": 90, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 28, "line": 4}}, "start": 59, "type": "BlockStatement"}, "end": 90, "generator": false, "id": {"end": 50, "loc": {"end": {"column": 19, "line": 4}, "identifierName": "annotation", "start": {"column": 9, "line": 4}}, "name": "annotation", "start": 40, "type": "Identifier"}, "loc": {"end": {"column": 1, "line": 6}, "start": {"column": 0, "line": 4}}, "params": [{"end": 57, "loc": {"end": {"column": 26, "line": 4}, "identifierName": "target", "start": {"column": 20, "line": 4}}, "name": "target", "start": 51, "type": "Identifier"}], "start": 31, "type": "FunctionDeclaration"}], "directives": [], "end": 91, "loc": {"end": {"column": 0, "line": 7}, "start": {"column": 0, "line": 1}}, "sourceType": "module", "start": 0, "type": "Program"}, "start": 0, "type": "File"}

Difference:

- Expected
+ Received

@@ -1,150 +1,150 @@
- Object {
+ Node {
    "comments": Array [],
    "end": 91,
-   "loc": Object {
-     "end": Object {
+   "loc": SourceLocation {
+     "end": Position {
        "column": 0,
        "line": 7,
      },
-     "start": Object {
+     "start": Position {
        "column": 0,
        "line": 1,
      },
    },
-   "program": Object {
+   "program": Node {
      "body": Array [
-       Object {
-         "body": Object {
+       Node {
+         "body": Node {
            "body": Array [],
            "end": 29,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 17,
                "line": 2,
              },
-             "start": Object {
+             "start": Position {
                "column": 14,
                "line": 2,
              },
            },
            "start": 26,
            "type": "ClassBody",
          },
          "decorators": Array [
-           Object {
+           Node {
              "end": 11,
-             "expression": Object {
+             "expression": Node {
                "end": 11,
-               "loc": Object {
-                 "end": Object {
+               "loc": SourceLocation {
+                 "end": Position {
                    "column": 11,
                    "line": 1,
                  },
                  "identifierName": "annotation",
-                 "start": Object {
+                 "start": Position {
                    "column": 1,
                    "line": 1,
                  },
                },
                "name": "annotation",
                "start": 1,
                "type": "Identifier",
              },
-             "loc": Object {
-               "end": Object {
+             "loc": SourceLocation {
+               "end": Position {
                  "column": 11,
                  "line": 1,
                },
-               "start": Object {
+               "start": Position {
                  "column": 0,
                  "line": 1,
                },
              },
              "start": 0,
              "type": "Decorator",
            },
          ],
          "end": 29,
-         "id": Object {
+         "id": Node {
            "end": 25,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 13,
                "line": 2,
              },
              "identifierName": "MyClass",
-             "start": Object {
+             "start": Position {
                "column": 6,
                "line": 2,
              },
            },
            "name": "MyClass",
            "start": 18,
            "type": "Identifier",
          },
-         "loc": Object {
-           "end": Object {
+         "loc": SourceLocation {
+           "end": Position {
              "column": 17,
              "line": 2,
            },
-           "start": Object {
+           "start": Position {
              "column": 0,
              "line": 1,
            },
          },
          "start": 0,
          "superClass": null,
          "type": "ClassDeclaration",
        },
-       Object {
+       Node {
          "async": false,
-         "body": Object {
+         "body": Node {
            "body": Array [
-             Object {
+             Node {
                "end": 88,
-               "expression": Object {
+               "expression": Node {
                  "end": 87,
-                 "left": Object {
+                 "left": Node {
                    "computed": false,
                    "end": 80,
-                   "loc": Object {
-                     "end": Object {
+                   "loc": SourceLocation {
+                     "end": Position {
                        "column": 19,
                        "line": 5,
                      },
-                     "start": Object {
+                     "start": Position {
                        "column": 3,
                        "line": 5,
                      },
                    },
-                   "object": Object {
+                   "object": Node {
                      "end": 70,
-                     "loc": Object {
-                       "end": Object {
+                     "loc": SourceLocation {
+                       "end": Position {
                          "column": 9,
                          "line": 5,
                        },
                        "identifierName": "target",
-                       "start": Object {
+                       "start": Position {
                          "column": 3,
                          "line": 5,
                        },
                      },
                      "name": "target",
                      "start": 64,
                      "type": "Identifier",
                    },
-                   "property": Object {
+                   "property": Node {
                      "end": 80,
-                     "loc": Object {
-                       "end": Object {
+                     "loc": SourceLocation {
+                       "end": Position {
                          "column": 19,
                          "line": 5,
                        },
                        "identifierName": "annotated",
-                       "start": Object {
+                       "start": Position {
                          "column": 10,
                          "line": 5,
                        },
                      },
                      "name": "annotated",
@@ -152,29 +152,29 @@
                      "type": "Identifier",
                    },
                    "start": 64,
                    "type": "MemberExpression",
                  },
-                 "loc": Object {
-                   "end": Object {
+                 "loc": SourceLocation {
+                   "end": Position {
                      "column": 26,
                      "line": 5,
                    },
-                   "start": Object {
+                   "start": Position {
                      "column": 3,
                      "line": 5,
                    },
                  },
                  "operator": "=",
-                 "right": Object {
+                 "right": Node {
                    "end": 87,
-                   "loc": Object {
-                     "end": Object {
+                   "loc": SourceLocation {
+                     "end": Position {
                        "column": 26,
                        "line": 5,
                      },
-                     "start": Object {
+                     "start": Position {
                        "column": 22,
                        "line": 5,
                      },
                    },
                    "start": 83,
@@ -182,79 +182,78 @@
                    "value": true,
                  },
                  "start": 64,
                  "type": "AssignmentExpression",
                },
-               "loc": Object {
-                 "end": Object {
+               "loc": SourceLocation {
+                 "end": Position {
                    "column": 27,
                    "line": 5,
                  },
-                 "start": Object {
+                 "start": Position {
                    "column": 3,
                    "line": 5,
                  },
                },
                "start": 64,
                "type": "ExpressionStatement",
              },
            ],
            "directives": Array [],
            "end": 90,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 1,
                "line": 6,
              },
-             "start": Object {
+             "start": Position {
                "column": 28,
                "line": 4,
              },
            },
            "start": 59,
            "type": "BlockStatement",
          },
          "end": 90,
-         "expression": false,
          "generator": false,
-         "id": Object {
+         "id": Node {
            "end": 50,
-           "loc": Object {
-             "end": Object {
+           "loc": SourceLocation {
+             "end": Position {
                "column": 19,
                "line": 4,
              },
              "identifierName": "annotation",
-             "start": Object {
+             "start": Position {
                "column": 9,
                "line": 4,
              },
            },
            "name": "annotation",
            "start": 40,
            "type": "Identifier",
          },
-         "loc": Object {
-           "end": Object {
+         "loc": SourceLocation {
+           "end": Position {
              "column": 1,
              "line": 6,
            },
-           "start": Object {
+           "start": Position {
              "column": 0,
              "line": 4,
            },
          },
          "params": Array [
-           Object {
+           Node {
              "end": 57,
-             "loc": Object {
-               "end": Object {
+             "loc": SourceLocation {
+               "end": Position {
                  "column": 26,
                  "line": 4,
                },
                "identifierName": "target",
-               "start": Object {
+               "start": Position {
                  "column": 20,
                  "line": 4,
                },
              },
              "name": "target",
@@ -266,16 +265,16 @@
          "type": "FunctionDeclaration",
        },
      ],
      "directives": Array [],
      "end": 91,
-     "loc": Object {
-       "end": Object {
+     "loc": SourceLocation {
+       "end": Position {
          "column": 0,
          "line": 7,
        },
-       "start": Object {
+       "start": Position {
          "column": 0,
          "line": 1,
        },
      },
      "sourceType": "module",

  19 |     const input = fs.readFileSync(fixture("input.js"), "utf8");
  20 |     const output = require(fixture("output"));
> 21 |     expect(parse(input, { parserOpts: { plugins: ["decorators"] } })).toEqual(
  22 |       output,
  23 |     );
  24 |   });
  
  at Object.<anonymous> (packages/babel-core/test/parse.js:21:71)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment