Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
test(ast-spec): snapshot codeframe of error#6555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 1 addition & 0 deletionspackages/ast-spec/package.json
This file contains hidden or 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
7 changes: 6 additions & 1 deletion...eclaration/ClassDeclaration/fixtures/_error_/missing-body/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ClassDeclaration _error_ missing-body TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | class Foo; | ||
| ^ '{' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ion/ClassDeclaration/fixtures/_error_/non-identifier-name/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ClassDeclaration _error_ non-identifier-name TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | class 'Foo' {} | ||
| ^ '{' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...assDeclaration/fixtures/_error_/non-identifier-type-param/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ClassDeclaration _error_ non-identifier-type-param TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | class C<1> {} | ||
| ^ Type parameter declaration expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...tion/ExportAllDeclaration/fixtures/_error_/missing-source/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportAllDeclaration _error_ missing-source TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export * from; | ||
| ^ Expression expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...xportAllDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportAllDeclaration _error_ named-non-identifier TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export * as 'foo' from 'module'; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...n/ExportAllDeclaration/fixtures/_error_/non-string-source/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportAllDeclaration _error_ non-string-source TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export * from module; | ||
| ^ Module specifier must be a string literal. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...eclaration/ExportDefaultDeclaration/fixtures/_error_/enum/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportDefaultDeclaration _error_ enum TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export default enum Foo {} | ||
| ^ Expression expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ation/ExportDefaultDeclaration/fixtures/_error_/namespace/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportDefaultDeclaration _error_ namespace TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export default namespace Foo {} | ||
| ^ ';' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...tion/ExportDefaultDeclaration/fixtures/_error_/type-alias/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportDefaultDeclaration _error_ type-alias TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export default type Foo = 1; | ||
| ^ ';' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...tDefaultDeclaration/fixtures/_error_/variable-declaration/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportDefaultDeclaration _error_ variable-declaration TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export default const x = 1; | ||
| ^ Expression expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...n/ExportNamedDeclaration/fixtures/_error_/aliased-literal/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ aliased-literal TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export { a as 'a' }; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...eclaration/fixtures/_error_/anonymous-function-expression/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ anonymous-function-expression TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export function () {} | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/ExportNamedDeclaration/fixtures/_error_/arrow-function/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ arrow-function TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export () => {}; | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion.../ExportNamedDeclaration/fixtures/_error_/class-expression/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ class-expression TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export (class Foo {}); | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ExportNamedDeclaration/fixtures/_error_/identifier-direct/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ identifier-direct TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export a; | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/ExportNamedDeclaration/fixtures/_error_/literal-braced/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-braced TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export { 'a' }; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/ExportNamedDeclaration/fixtures/_error_/literal-direct/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ExportNamedDeclaration _error_ literal-direct TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | export 'a'; | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...nDeclaration/fixtures/_error_/missing-id-and-not-exported/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration FunctionDeclaration _error_ missing-id-and-not-exported TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | function () {} | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion.../FunctionDeclaration/fixtures/_error_/non-identifier-name/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration FunctionDeclaration _error_ non-identifier-name TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | function 1() {} | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ionDeclaration/fixtures/_error_/non-identifier-type-param/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration FunctionDeclaration _error_ non-identifier-type-param TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | function foo<1>() {} | ||
| ^ Type parameter declaration expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ImportDeclaration/fixtures/_error_/default-non-identifier/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ default-non-identifier TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import 1 from 'mod'; | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/ImportDeclaration/fixtures/_error_/named-and-namespace/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ named-and-namespace TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import { b }, * as a from 'a'; | ||
| ^ 'from' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...n/ImportDeclaration/fixtures/_error_/named-non-identifier/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ named-non-identifier TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import { 1 } from 'mod'; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion.../ImportDeclaration/fixtures/_error_/namespace-and-default/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-default TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import * as b, a from 'mod'; | ||
| ^ 'from' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/ImportDeclaration/fixtures/_error_/namespace-and-named/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-named TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import * as a, { b } from 'a'; | ||
| ^ 'from' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...mportDeclaration/fixtures/_error_/namespace-and-namespace/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-and-namespace TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import * as a, * as b from 'a'; | ||
| ^ 'from' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...portDeclaration/fixtures/_error_/namespace-non-identifier/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ namespace-non-identifier TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import * as 1 from 'mod'; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...tion/ImportDeclaration/fixtures/_error_/non-string-source/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration ImportDeclaration _error_ non-string-source TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import * as x from module; | ||
| ^ Module specifier must be a string literal. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...lareFunction/fixtures/_error_/missing-id-and-not-exported/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSDeclareFunction _error_ missing-id-and-not-exported TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | declare function (); | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/TSDeclareFunction/fixtures/_error_/non-identifier-name/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSDeclareFunction _error_ non-identifier-name TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | declare function 1(); | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...eclareFunction/fixtures/_error_/non-identifier-type-param/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSDeclareFunction _error_ non-identifier-type-param TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | declare function f<1>(): void; | ||
| ^ Type parameter declaration expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...claration/TSEnumDeclaration/fixtures/_error_/missing-body/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSEnumDeclaration _error_ missing-body TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | enum Foo; | ||
| ^ '{' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...declaration/TSEnumDeclaration/fixtures/_error_/missing-id/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSEnumDeclaration _error_ missing-id TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | enum {} | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...on/TSEnumDeclaration/fixtures/_error_/non-identifier-name/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSEnumDeclaration _error_ non-identifier-name TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | enum 1 {} | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ortEqualsDeclaration/fixtures/_error_/entity-name-invalid/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSImportEqualsDeclaration _error_ entity-name-invalid TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import F = 1; | ||
| ^ Identifier expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ion/TSImportEqualsDeclaration/fixtures/_error_/missing-id/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSImportEqualsDeclaration _error_ missing-id TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import = A.B; | ||
| ^ Declaration or statement expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...mportEqualsDeclaration/fixtures/_error_/missing-reference/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSImportEqualsDeclaration _error_ missing-reference TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | import F; | ||
| ^ '=' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...tion/TSInterfaceDeclaration/fixtures/_error_/missing-body/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSInterfaceDeclaration _error_ missing-body TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | interface F; | ||
| ^ '{' expected. | ||
2 |" | ||
`; |
7 changes: 6 additions & 1 deletion...ration/TSInterfaceDeclaration/fixtures/_error_/missing-id/snapshots/1-TSESTree-Error.shot
This file contains hidden or 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
exports[`AST Fixtures declaration TSInterfaceDeclaration _error_ missing-id TSESTree - Error 1`] = ` | ||
"TSError | ||
> 1 | interface {} | ||
| ^ Interface must be given a name. | ||
2 |" | ||
`; |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.