Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(typescript-estree): improve printing TSError in snapshots
- Loading branch information
Showing
76 changed files
with
1,649 additions
and
323 deletions.
There are no files selected for viewing
1,370 changes: 1,123 additions & 247 deletions
1,370
packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
8 changes: 7 additions & 1 deletion
8
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-missing-paren.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-missing-paren.src 1`] = `[TSError: ';' expected. (1:9 | 9)`; | ||
exports[`javascript arrowFunctions error-missing-paren.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 9, | ||
"index": 9, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...s/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-not-arrow.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-not-arrow.src 1`] = `[TSError: Expression expected. (1:26 | 26)`; | ||
exports[`javascript arrowFunctions error-not-arrow.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
"column": 26, | ||
"index": 26, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pt-estree/tests/snapshots/javascript/arrowFunctions/error-numeric-param-multi.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-numeric-param-multi.src 1`] = `[TSError: ';' expected. (1:9 | 9)`; | ||
exports[`javascript arrowFunctions error-numeric-param-multi.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 9, | ||
"index": 9, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-numeric-param.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-numeric-param.src 1`] = `[TSError: ';' expected. (1:5 | 5)`; | ||
exports[`javascript arrowFunctions error-numeric-param.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 5, | ||
"index": 5, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-reverse-arrow.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-reverse-arrow.src 1`] = `[TSError: Expression expected. (1:1 | 1)`; | ||
exports[`javascript arrowFunctions error-reverse-arrow.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
"column": 1, | ||
"index": 1, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-wrapped-param.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-wrapped-param.src 1`] = `[TSError: ';' expected. (1:6 | 6)`; | ||
exports[`javascript arrowFunctions error-wrapped-param.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 6, | ||
"index": 6, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/invalid.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript binaryLiterals invalid.src 1`] = `[TSError: ';' expected. (1:4 | 4)`; | ||
exports[`javascript binaryLiterals invalid.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 4, | ||
"index": 4, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
packages/typescript-estree/tests/snapshots/javascript/classes/class-with-no-body.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript classes class-with-no-body.src 1`] = `[TSError: '{' expected. (2:0 | 10)`; | ||
exports[`javascript classes class-with-no-body.src 1`] = ` | ||
[TSError: '{' expected. | ||
"lineNumber": 2, | ||
"column": 0, | ||
"index": 10, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...ipt-estree/tests/snapshots/javascript/classes/invalid-class-two-super-classes.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript classes invalid-class-two-super-classes.src 1`] = `[TSError: Classes can only extend a single class. (1:18 | 18)`; | ||
exports[`javascript classes invalid-class-two-super-classes.src 1`] = ` | ||
[TSError: Classes can only extend a single class. | ||
"lineNumber": 1, | ||
"column": 18, | ||
"index": 18, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...ts/snapshots/javascript/experimentalDynamicImport/error-dynamic-import-params.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript experimentalDynamicImport error-dynamic-import-params.src 1`] = `[TSError: Dynamic import must have one specifier as an argument. (1:7 | 7)`; | ||
exports[`javascript experimentalDynamicImport error-dynamic-import-params.src 1`] = ` | ||
[TSError: Dynamic import must have one specifier as an argument. | ||
"lineNumber": 1, | ||
"column": 7, | ||
"index": 7, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...t-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript experimentalObjectRestSpread invalid-rest.src 1`] = `[TSError: ',' expected. (1:18 | 18)`; | ||
exports[`javascript experimentalObjectRestSpread invalid-rest.src 1`] = ` | ||
[TSError: ',' expected. | ||
"lineNumber": 1, | ||
"column": 18, | ||
"index": 18, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript forIn for-in-object.src 1`] = `[TSError: ';' expected. (1:14 | 14)`; | ||
exports[`javascript forIn for-in-object.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 14, | ||
"index": 14, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
packages/typescript-estree/tests/snapshots/javascript/hexLiterals/invalid.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript hexLiterals invalid.src 1`] = `[TSError: ';' expected. (1:4 | 4)`; | ||
exports[`javascript hexLiterals invalid.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 4, | ||
"index": 4, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...e/tests/snapshots/javascript/modules/invalid-export-batch-missing-from-clause.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-batch-missing-from-clause.src 1`] = `[TSError: 'from' expected. (2:0 | 9)`; | ||
exports[`javascript modules invalid-export-batch-missing-from-clause.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
"column": 0, | ||
"index": 9, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pescript-estree/tests/snapshots/javascript/modules/invalid-export-batch-token.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-batch-token.src 1`] = `[TSError: 'from' expected. (1:9 | 9)`; | ||
exports[`javascript modules invalid-export-batch-token.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 9, | ||
"index": 9, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...script-estree/tests/snapshots/javascript/modules/invalid-export-default-equal.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default-equal.src 1`] = `[TSError: Expression expected. (1:15 | 15)`; | ||
exports[`javascript modules invalid-export-default-equal.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
"column": 15, | ||
"index": 15, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...script-estree/tests/snapshots/javascript/modules/invalid-export-default-token.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default-token.src 1`] = `[TSError: ';' expected. (1:17 | 17)`; | ||
exports[`javascript modules invalid-export-default-token.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 17, | ||
"index": 17, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...s/typescript-estree/tests/snapshots/javascript/modules/invalid-export-default.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default.src 1`] = `[TSError: ';' expected. (1:20 | 20)`; | ||
exports[`javascript modules invalid-export-default.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 20, | ||
"index": 20, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pt-estree/tests/snapshots/javascript/modules/invalid-export-named-extra-comma.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-named-extra-comma.src 1`] = `[TSError: Identifier expected. (1:16 | 16)`; | ||
exports[`javascript modules invalid-export-named-extra-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
"column": 16, | ||
"index": 16, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...t-estree/tests/snapshots/javascript/modules/invalid-export-named-middle-comma.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-named-middle-comma.src 1`] = `[TSError: Identifier expected. (1:12 | 12)`; | ||
exports[`javascript modules invalid-export-named-middle-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
"column": 12, | ||
"index": 12, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...snapshots/javascript/modules/invalid-import-default-after-named-after-default.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-after-named-after-default.src 1`] = `[TSError: 'from' expected. (1:17 | 17)`; | ||
exports[`javascript modules invalid-import-default-after-named-after-default.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 17, | ||
"index": 17, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...-estree/tests/snapshots/javascript/modules/invalid-import-default-after-named.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-after-named.src 1`] = `[TSError: 'from' expected. (1:12 | 12)`; | ||
exports[`javascript modules invalid-import-default-after-named.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 12, | ||
"index": 12, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
.../snapshots/javascript/modules/invalid-import-default-missing-module-specifier.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-missing-module-specifier.src 1`] = `[TSError: '=' expected. (2:0 | 11)`; | ||
exports[`javascript modules invalid-import-default-missing-module-specifier.src 1`] = ` | ||
[TSError: '=' expected. | ||
"lineNumber": 2, | ||
"column": 0, | ||
"index": 11, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...s/typescript-estree/tests/snapshots/javascript/modules/invalid-import-default.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default.src 1`] = `[TSError: Expression expected. (1:7 | 7)`; | ||
exports[`javascript modules invalid-import-default.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
"column": 7, | ||
"index": 7, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...ee/tests/snapshots/javascript/modules/invalid-import-missing-module-specifier.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-missing-module-specifier.src 1`] = `[TSError: 'from' expected. (2:0 | 20)`; | ||
exports[`javascript modules invalid-import-missing-module-specifier.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
"column": 0, | ||
"index": 20, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pt-estree/tests/snapshots/javascript/modules/invalid-import-named-after-named.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-after-named.src 1`] = `[TSError: 'from' expected. (1:12 | 12)`; | ||
exports[`javascript modules invalid-import-named-after-named.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 12, | ||
"index": 12, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...stree/tests/snapshots/javascript/modules/invalid-import-named-after-namespace.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-after-namespace.src 1`] = `[TSError: 'from' expected. (1:15 | 15)`; | ||
exports[`javascript modules invalid-import-named-after-namespace.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 15, | ||
"index": 15, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...stree/tests/snapshots/javascript/modules/invalid-import-named-as-missing-from.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-as-missing-from.src 1`] = `[TSError: 'from' expected. (2:0 | 24)`; | ||
exports[`javascript modules invalid-import-named-as-missing-from.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
"column": 0, | ||
"index": 24, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...pt-estree/tests/snapshots/javascript/modules/invalid-import-named-extra-comma.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-extra-comma.src 1`] = `[TSError: Identifier expected. (1:16 | 16)`; | ||
exports[`javascript modules invalid-import-named-extra-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
"column": 16, | ||
"index": 16, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...t-estree/tests/snapshots/javascript/modules/invalid-import-named-middle-comma.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-middle-comma.src 1`] = `[TSError: Identifier expected. (1:12 | 12)`; | ||
exports[`javascript modules invalid-import-named-middle-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
"column": 12, | ||
"index": 12, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...stree/tests/snapshots/javascript/modules/invalid-import-namespace-after-named.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-namespace-after-named.src 1`] = `[TSError: 'from' expected. (1:12 | 12)`; | ||
exports[`javascript modules invalid-import-namespace-after-named.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
"column": 12, | ||
"index": 12, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...estree/tests/snapshots/javascript/modules/invalid-import-namespace-missing-as.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-namespace-missing-as.src 1`] = `[TSError: 'as' expected. (1:9 | 9)`; | ||
exports[`javascript modules invalid-import-namespace-missing-as.src 1`] = ` | ||
[TSError: 'as' expected. | ||
"lineNumber": 1, | ||
"column": 9, | ||
"index": 9, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...javascript/objectLiteralComputedProperties/invalid-computed-variable-property.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript objectLiteralComputedProperties invalid-computed-variable-property.src 1`] = `[TSError: ':' expected. (3:0 | 20)`; | ||
exports[`javascript objectLiteralComputedProperties invalid-computed-variable-property.src 1`] = ` | ||
[TSError: ':' expected. | ||
"lineNumber": 3, | ||
"column": 0, | ||
"index": 20, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...objectLiteralComputedProperties/invalid-standalone-computed-variable-property.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript objectLiteralComputedProperties invalid-standalone-computed-variable-property.src 1`] = `[TSError: ':' expected. (1:5 | 5)`; | ||
exports[`javascript objectLiteralComputedProperties invalid-standalone-computed-variable-property.src 1`] = ` | ||
[TSError: ':' expected. | ||
"lineNumber": 1, | ||
"column": 5, | ||
"index": 5, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
...s/snapshots/javascript/objectLiteralShorthandMethods/invalid-method-no-braces.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript objectLiteralShorthandMethods invalid-method-no-braces.src 1`] = `[TSError: '{' expected. (2:13 | 19)`; | ||
exports[`javascript objectLiteralShorthandMethods invalid-method-no-braces.src 1`] = ` | ||
[TSError: '{' expected. | ||
"lineNumber": 2, | ||
"column": 13, | ||
"index": 19, | ||
] | ||
`; |
8 changes: 7 additions & 1 deletion
8
packages/typescript-estree/tests/snapshots/javascript/octalLiterals/invalid.src.js.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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript octalLiterals invalid.src 1`] = `[TSError: ';' expected. (1:4 | 4)`; | ||
exports[`javascript octalLiterals invalid.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
"column": 4, | ||
"index": 4, | ||
] | ||
`; |
Oops, something went wrong.