-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(ast-spec): update
@babel/parser
(#6599)
- Loading branch information
1 parent
5f6ed73
commit 7fe41ff
Showing
36 changed files
with
864 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
...pec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - AST 1`] = ` | ||
Program { | ||
type: "Program", | ||
body: Array [ | ||
ExportAllDeclaration { | ||
type: "ExportAllDeclaration", | ||
assertions: Array [], | ||
exported: Identifier { | ||
type: "Identifier", | ||
name: "x", | ||
range: [17, 18], | ||
loc: { | ||
start: { column: 17, line: 1 }, | ||
end: { column: 18, line: 1 }, | ||
}, | ||
}, | ||
exportKind: "type", | ||
source: Literal { | ||
type: "Literal", | ||
raw: "'a'", | ||
value: "a", | ||
range: [24, 27], | ||
loc: { | ||
start: { column: 24, line: 1 }, | ||
end: { column: 27, line: 1 }, | ||
}, | ||
}, | ||
range: [0, 28], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 28, line: 1 }, | ||
}, | ||
}, | ||
], | ||
sourceType: "module", | ||
range: [0, 29], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 0, line: 2 }, | ||
}, | ||
} | ||
`; |
File renamed without changes.
File renamed without changes.
86 changes: 86 additions & 0 deletions
86
.../src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type TSESTree - Tokens 1`] = ` | ||
Array [ | ||
Keyword { | ||
type: "Keyword", | ||
value: "export", | ||
range: [0, 6], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 6, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "type", | ||
range: [7, 11], | ||
loc: { | ||
start: { column: 7, line: 1 }, | ||
end: { column: 11, line: 1 }, | ||
}, | ||
}, | ||
Punctuator { | ||
type: "Punctuator", | ||
value: "*", | ||
range: [12, 13], | ||
loc: { | ||
start: { column: 12, line: 1 }, | ||
end: { column: 13, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "as", | ||
range: [14, 16], | ||
loc: { | ||
start: { column: 14, line: 1 }, | ||
end: { column: 16, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "x", | ||
range: [17, 18], | ||
loc: { | ||
start: { column: 17, line: 1 }, | ||
end: { column: 18, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "from", | ||
range: [19, 23], | ||
loc: { | ||
start: { column: 19, line: 1 }, | ||
end: { column: 23, line: 1 }, | ||
}, | ||
}, | ||
String { | ||
type: "String", | ||
value: "'a'", | ||
range: [24, 27], | ||
loc: { | ||
start: { column: 24, line: 1 }, | ||
end: { column: 27, line: 1 }, | ||
}, | ||
}, | ||
Punctuator { | ||
type: "Punctuator", | ||
value: ";", | ||
range: [27, 28], | ||
loc: { | ||
start: { column: 27, line: 1 }, | ||
end: { column: 28, line: 1 }, | ||
}, | ||
}, | ||
] | ||
`; |
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
...t-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - AST 1`] = ` | ||
Program { | ||
type: "Program", | ||
body: Array [ | ||
ExportAllDeclaration { | ||
type: "ExportAllDeclaration", | ||
assertions: Array [], | ||
exported: Identifier { | ||
type: "Identifier", | ||
name: "x", | ||
range: [17, 18], | ||
loc: { | ||
start: { column: 17, line: 1 }, | ||
end: { column: 18, line: 1 }, | ||
}, | ||
}, | ||
exportKind: "type", | ||
source: Literal { | ||
type: "Literal", | ||
raw: "'a'", | ||
value: "a", | ||
range: [24, 27], | ||
loc: { | ||
start: { column: 24, line: 1 }, | ||
end: { column: 27, line: 1 }, | ||
}, | ||
}, | ||
range: [0, 28], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 28, line: 1 }, | ||
}, | ||
}, | ||
], | ||
sourceType: "script", | ||
range: [0, 29], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 0, line: 2 }, | ||
}, | ||
} | ||
`; |
86 changes: 86 additions & 0 deletions
86
...pec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type Babel - Tokens 1`] = ` | ||
Array [ | ||
Keyword { | ||
type: "Keyword", | ||
value: "export", | ||
range: [0, 6], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 6, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "type", | ||
range: [7, 11], | ||
loc: { | ||
start: { column: 7, line: 1 }, | ||
end: { column: 11, line: 1 }, | ||
}, | ||
}, | ||
Punctuator { | ||
type: "Punctuator", | ||
value: "*", | ||
range: [12, 13], | ||
loc: { | ||
start: { column: 12, line: 1 }, | ||
end: { column: 13, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "as", | ||
range: [14, 16], | ||
loc: { | ||
start: { column: 14, line: 1 }, | ||
end: { column: 16, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "x", | ||
range: [17, 18], | ||
loc: { | ||
start: { column: 17, line: 1 }, | ||
end: { column: 18, line: 1 }, | ||
}, | ||
}, | ||
Identifier { | ||
type: "Identifier", | ||
value: "from", | ||
range: [19, 23], | ||
loc: { | ||
start: { column: 19, line: 1 }, | ||
end: { column: 23, line: 1 }, | ||
}, | ||
}, | ||
String { | ||
type: "String", | ||
value: "'a'", | ||
range: [24, 27], | ||
loc: { | ||
start: { column: 24, line: 1 }, | ||
end: { column: 27, line: 1 }, | ||
}, | ||
}, | ||
Punctuator { | ||
type: "Punctuator", | ||
value: ";", | ||
range: [27, 28], | ||
loc: { | ||
start: { column: 27, line: 1 }, | ||
end: { column: 28, line: 1 }, | ||
}, | ||
}, | ||
] | ||
`; |
53 changes: 53 additions & 0 deletions
53
...rc/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type AST Alignment - AST 1`] = ` | ||
"Snapshot Diff: | ||
- TSESTree | ||
+ Babel | ||
Program { | ||
type: 'Program', | ||
body: Array [ | ||
ExportAllDeclaration { | ||
type: 'ExportAllDeclaration', | ||
assertions: Array [], | ||
exported: Identifier { | ||
type: 'Identifier', | ||
name: 'x', | ||
range: [17, 18], | ||
loc: { | ||
start: { column: 17, line: 1 }, | ||
end: { column: 18, line: 1 }, | ||
}, | ||
}, | ||
exportKind: 'type', | ||
source: Literal { | ||
type: 'Literal', | ||
raw: '\\\\'a\\\\'', | ||
value: 'a', | ||
range: [24, 27], | ||
loc: { | ||
start: { column: 24, line: 1 }, | ||
end: { column: 27, line: 1 }, | ||
}, | ||
}, | ||
range: [0, 28], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 28, line: 1 }, | ||
}, | ||
}, | ||
], | ||
- sourceType: 'module', | ||
+ sourceType: 'script', | ||
range: [0, 29], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 0, line: 2 }, | ||
}, | ||
}" | ||
`; |
6 changes: 6 additions & 0 deletions
6
...declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration kind-type AST Alignment - Token 1`] = ` | ||
"Snapshot Diff: | ||
Compared values have no visual difference." | ||
`; |
File renamed without changes.
39 changes: 39 additions & 0 deletions
39
...pec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`AST Fixtures declaration ExportAllDeclaration type-kind TSESTree - AST 1`] = ` | ||
Program { | ||
type: "Program", | ||
body: Array [ | ||
ExportAllDeclaration { | ||
type: "ExportAllDeclaration", | ||
assertions: Array [], | ||
exported: null, | ||
exportKind: "type", | ||
source: Literal { | ||
type: "Literal", | ||
raw: "'a'", | ||
value: "a", | ||
range: [19, 22], | ||
loc: { | ||
start: { column: 19, line: 1 }, | ||
end: { column: 22, line: 1 }, | ||
}, | ||
}, | ||
range: [0, 23], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 23, line: 1 }, | ||
}, | ||
}, | ||
], | ||
sourceType: "module", | ||
range: [0, 24], | ||
loc: { | ||
start: { column: 0, line: 1 }, | ||
end: { column: 0, line: 2 }, | ||
}, | ||
} | ||
`; |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.