From fa88b40332eb04774a266390e50ab91cd05414be Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 12 Mar 2023 02:21:47 +0900 Subject: [PATCH 1/3] test(ast-spec): update `@babel/parser` --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 1120ec8e8fca..55cc30bac359 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "@babel/code-frame": "^7.18.6", "@babel/core": "^7.20.2", "@babel/eslint-parser": "^7.19.1", - "@babel/parser": "^7.20.7", + "@babel/parser": "^7.21.2", "@babel/types": "^7.20.2", "@nrwl/jest": "15.7.2", "@nrwl/nx-cloud": "15.0.3", diff --git a/yarn.lock b/yarn.lock index 575b622913b7..55161f3e846e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -441,10 +441,10 @@ chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.8", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2", "@babel/parser@^7.20.7": - version "7.20.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.7.tgz#66fe23b3c8569220817d5feb8b9dcdc95bb4f71b" - integrity sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg== +"@babel/parser@*", "@babel/parser@^7.1.0", "@babel/parser@^7.12.7", "@babel/parser@^7.14.7", "@babel/parser@^7.18.10", "@babel/parser@^7.18.8", "@babel/parser@^7.20.1", "@babel/parser@^7.20.2", "@babel/parser@^7.21.2": + version "7.21.2" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.2.tgz#dacafadfc6d7654c3051a66d6fe55b6cb2f2a0b3" + integrity sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ== "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": version "7.18.6" From f891dc25413c9b797788b62482ed62deab0e2c9d Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 12 Mar 2023 02:24:05 +0900 Subject: [PATCH 2/3] test(ast-spec): move tests for `export type *` --- .../{_error_ => }/kind-type/fixture.ts | 0 .../kind-type/snapshots/1-TSESTree-AST.shot | 48 +++++++++++ .../kind-type/snapshots/1-TSESTree-Error.shot | 0 .../kind-type/snapshots/2-Babel-Error.shot | 0 .../snapshots/2-TSESTree-Tokens.shot | 86 +++++++++++++++++++ .../snapshots/3-Alignment-Error.shot | 0 .../kind-type/snapshots/3-Babel-AST.shot | 48 +++++++++++ .../kind-type/snapshots/4-Babel-Tokens.shot | 86 +++++++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 53 ++++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 ++ .../{_error_ => }/type-kind/fixture.ts | 0 .../type-kind/snapshots/1-TSESTree-AST.shot | 39 +++++++++ .../type-kind/snapshots/1-TSESTree-Error.shot | 0 .../type-kind/snapshots/2-Babel-Error.shot | 0 .../snapshots/2-TSESTree-Tokens.shot | 66 ++++++++++++++ .../snapshots/3-Alignment-Error.shot | 0 .../type-kind/snapshots/3-Babel-AST.shot | 39 +++++++++ .../type-kind/snapshots/4-Babel-Tokens.shot | 66 ++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 44 ++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 ++ .../snapshots/2-Babel-Error.shot | 2 +- .../export-type-star-from/fixture.ts | 0 .../snapshots/1-TSESTree-AST.shot | 39 +++++++++ .../snapshots/1-TSESTree-Error.shot | 0 .../snapshots/2-Babel-Error.shot | 2 +- .../snapshots/2-TSESTree-Tokens.shot | 66 ++++++++++++++ .../snapshots/3-Alignment-Error.shot | 2 +- .../snapshots/3-Babel-AST.shot | 39 +++++++++ .../snapshots/4-Babel-Tokens.shot | 66 ++++++++++++++ .../snapshots/5-AST-Alignment-AST.shot | 44 ++++++++++ .../snapshots/6-AST-Alignment-Tokens.shot | 6 ++ .../tests/fixtures-with-differences-ast.shot | 3 + .../fixtures-with-differences-errors.shot | 3 - 33 files changed, 853 insertions(+), 6 deletions(-) rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/kind-type/fixture.ts (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/kind-type/snapshots/1-TSESTree-Error.shot (100%) rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/kind-type/snapshots/2-Babel-Error.shot (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/kind-type/snapshots/3-Alignment-Error.shot (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/type-kind/fixture.ts (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/type-kind/snapshots/1-TSESTree-Error.shot (100%) rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/type-kind/snapshots/2-Babel-Error.shot (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot rename packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/{_error_ => }/type-kind/snapshots/3-Alignment-Error.shot (100%) create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot rename packages/ast-spec/src/legacy-fixtures/basics/fixtures/{_error_ => }/export-type-star-from/fixture.ts (100%) create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot rename packages/ast-spec/src/legacy-fixtures/basics/fixtures/{_error_ => }/export-type-star-from/snapshots/1-TSESTree-Error.shot (100%) rename packages/ast-spec/src/legacy-fixtures/basics/fixtures/{_error_ => }/export-type-star-from/snapshots/2-Babel-Error.shot (59%) create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot rename packages/ast-spec/src/legacy-fixtures/basics/fixtures/{_error_ => }/export-type-star-from/snapshots/3-Alignment-Error.shot (60%) create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot create mode 100644 packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..4e1ab2405d45 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-AST.shot @@ -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 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..f5bfa8f5615e --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/2-TSESTree-Tokens.shot @@ -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 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..db3c54aa4dba --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/3-Babel-AST.shot @@ -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 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..d056329978cf --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/4-Babel-Tokens.shot @@ -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 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..238b22e8fba5 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/5-AST-Alignment-AST.shot @@ -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 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..3ae1629d114b --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/kind-type/snapshots/6-AST-Alignment-Tokens.shot @@ -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." +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..e17c2f544c3e --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-AST.shot @@ -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 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-Babel-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-Babel-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..0b14e18af159 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind 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: "from", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Alignment-Error.shot similarity index 100% rename from packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Alignment-Error.shot diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..ada2c2d39de7 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/3-Babel-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind Babel - 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: "script", + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, +} +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..b222fc881322 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind 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: "from", + + range: [14, 18], + loc: { + start: { column: 14, line: 1 }, + end: { column: 18, line: 1 }, + }, + }, + String { + type: "String", + value: "'a'", + + range: [19, 22], + loc: { + start: { column: 19, line: 1 }, + end: { column: 22, line: 1 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [22, 23], + loc: { + start: { column: 22, line: 1 }, + end: { column: 23, line: 1 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..038e5e4fa6f1 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,44 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + 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', ++ sourceType: 'script', + + range: [0, 24], + loc: { + start: { column: 0, line: 1 }, + end: { column: 0, line: 2 }, + }, + }" +`; diff --git a/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..b2a5206fd193 --- /dev/null +++ b/packages/ast-spec/src/declaration/ExportAllDeclaration/fixtures/type-kind/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures declaration ExportAllDeclaration type-kind AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot index 7fc98b33463b..824f587f17a3 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ interface-with-construct-signature-with-parameter-accessibility Babel - Error 1`] = `[SyntaxError: Unexpected reserved word 'public'. (4:9)]`; +exports[`AST Fixtures legacy-fixtures basics _error_ interface-with-construct-signature-with-parameter-accessibility Babel - Error 1`] = `[SyntaxError: A parameter property is only allowed in a constructor implementation. (4:9)]`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot new file mode 100644 index 000000000000..85b4043a8506 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - AST 1`] = ` +Program { + type: "Program", + body: Array [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: Array [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'bar'", + value: "bar", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], + sourceType: "module", + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, +} +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/1-TSESTree-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-Error.shot similarity index 100% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/1-TSESTree-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/1-TSESTree-Error.shot diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot similarity index 59% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot index def7016368fc..59a6da4f81f8 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/2-Babel-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-Babel-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Babel - Error 1`] = `[SyntaxError: Unexpected token (3:12)]`; +exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Babel - Error 1`] = `"NO ERROR"`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot new file mode 100644 index 000000000000..ff19b28d1fa9 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/2-TSESTree-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from TSESTree - Tokens 1`] = ` +Array [ + Keyword { + type: "Keyword", + value: "export", + + range: [73, 79], + loc: { + start: { column: 0, line: 3 }, + end: { column: 6, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [80, 84], + loc: { + start: { column: 7, line: 3 }, + end: { column: 11, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [85, 86], + loc: { + start: { column: 12, line: 3 }, + end: { column: 13, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [87, 91], + loc: { + start: { column: 14, line: 3 }, + end: { column: 18, line: 3 }, + }, + }, + String { + type: "String", + value: "'bar'", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [97, 98], + loc: { + start: { column: 24, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot similarity index 60% rename from packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot rename to packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot index 848412137b2a..e485c123fdb5 100644 --- a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/snapshots/3-Alignment-Error.shot +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Alignment-Error.shot @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Error Alignment 1`] = `"Babel errored but TSESTree didn't"`; +exports[`AST Fixtures legacy-fixtures basics _error_ export-type-star-from Error Alignment 1`] = `"No errors"`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot new file mode 100644 index 000000000000..a3a9467eb829 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/3-Babel-AST.shot @@ -0,0 +1,39 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - AST 1`] = ` +Program { + type: "Program", + body: Array [ + ExportAllDeclaration { + type: "ExportAllDeclaration", + assertions: Array [], + exported: null, + exportKind: "type", + source: Literal { + type: "Literal", + raw: "'bar'", + value: "bar", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], + sourceType: "script", + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, +} +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot new file mode 100644 index 000000000000..fb91aebea7ae --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/4-Babel-Tokens.shot @@ -0,0 +1,66 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from Babel - Tokens 1`] = ` +Array [ + Keyword { + type: "Keyword", + value: "export", + + range: [73, 79], + loc: { + start: { column: 0, line: 3 }, + end: { column: 6, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "type", + + range: [80, 84], + loc: { + start: { column: 7, line: 3 }, + end: { column: 11, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: "*", + + range: [85, 86], + loc: { + start: { column: 12, line: 3 }, + end: { column: 13, line: 3 }, + }, + }, + Identifier { + type: "Identifier", + value: "from", + + range: [87, 91], + loc: { + start: { column: 14, line: 3 }, + end: { column: 18, line: 3 }, + }, + }, + String { + type: "String", + value: "'bar'", + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + Punctuator { + type: "Punctuator", + value: ";", + + range: [97, 98], + loc: { + start: { column: 24, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, +] +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot new file mode 100644 index 000000000000..292104842b03 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/5-AST-Alignment-AST.shot @@ -0,0 +1,44 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from AST Alignment - AST 1`] = ` +"Snapshot Diff: +- TSESTree ++ Babel + + Program { + type: 'Program', + body: Array [ + ExportAllDeclaration { + type: 'ExportAllDeclaration', + assertions: Array [], + exported: null, + exportKind: 'type', + source: Literal { + type: 'Literal', + raw: '\\\\'bar\\\\'', + value: 'bar', + + range: [92, 97], + loc: { + start: { column: 19, line: 3 }, + end: { column: 24, line: 3 }, + }, + }, + + range: [73, 98], + loc: { + start: { column: 0, line: 3 }, + end: { column: 25, line: 3 }, + }, + }, + ], +- sourceType: 'module', ++ sourceType: 'script', + + range: [73, 99], + loc: { + start: { column: 0, line: 3 }, + end: { column: 0, line: 4 }, + }, + }" +`; diff --git a/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot new file mode 100644 index 000000000000..24962635a2a6 --- /dev/null +++ b/packages/ast-spec/src/legacy-fixtures/basics/fixtures/export-type-star-from/snapshots/6-AST-Alignment-Tokens.shot @@ -0,0 +1,6 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AST Fixtures legacy-fixtures basics export-type-star-from AST Alignment - Token 1`] = ` +"Snapshot Diff: +Compared values have no visual difference." +`; diff --git a/packages/ast-spec/tests/fixtures-with-differences-ast.shot b/packages/ast-spec/tests/fixtures-with-differences-ast.shot index 7602cbedcdc1..cfb895eda509 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-ast.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-ast.shot @@ -7,6 +7,8 @@ Set { "declaration/ClassDeclaration/fixtures/type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/type-parameters-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/with-member-one/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/kind-type/fixture.ts", + "declaration/ExportAllDeclaration/fixtures/type-kind/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/aliased/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/declare-function/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/identifier-braced/fixture.ts", @@ -121,6 +123,7 @@ Set { "legacy-fixtures/basics/fixtures/export-type-as/fixture.ts", "legacy-fixtures/basics/fixtures/export-type-from-as/fixture.ts", "legacy-fixtures/basics/fixtures/export-type-from/fixture.ts", + "legacy-fixtures/basics/fixtures/export-type-star-from/fixture.ts", "legacy-fixtures/basics/fixtures/export-type/fixture.ts", "legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/fixture.ts", "legacy-fixtures/basics/fixtures/function-with-type-parameters-that-have-comments/fixture.ts", diff --git a/packages/ast-spec/tests/fixtures-with-differences-errors.shot b/packages/ast-spec/tests/fixtures-with-differences-errors.shot index b57d165dd07d..5cc90983a298 100644 --- a/packages/ast-spec/tests/fixtures-with-differences-errors.shot +++ b/packages/ast-spec/tests/fixtures-with-differences-errors.shot @@ -6,8 +6,6 @@ Object { "declaration/ClassDeclaration/fixtures/_error_/implements-non-identifier/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-extends-type-param/fixture.ts", "declaration/ClassDeclaration/fixtures/_error_/missing-type-param/fixture.ts", - "declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture.ts", - "declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/anonymous-class/fixture.ts", "declaration/ExportNamedDeclaration/fixtures/_error_/assertion/fixture.ts", "declaration/FunctionDeclaration/fixtures/_error_/missing-type-param/fixture.ts", @@ -36,7 +34,6 @@ Object { "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-number/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-string/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-named-enum-computed-var-ref/fixture.ts", - "legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/export-with-import-assertions/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/import-type-error/fixture.ts", "legacy-fixtures/basics/fixtures/_error_/interface-with-construct-signature-with-parameter-accessibility/fixture.ts", From 13ebf46be764a0e234f16f75d65d37448827a720 Mon Sep 17 00:00:00 2001 From: Sosuke Suzuki Date: Sun, 12 Mar 2023 02:25:36 +0900 Subject: [PATCH 3/3] test(typescript-estree): update snapshots --- .../semantic-diagnostics-enabled.test.ts.snap | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap b/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap index f3e70c9914e8..085bedfe4f56 100644 --- a/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap +++ b/packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap @@ -73,8 +73,6 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ClassDeclaration/fixtures/with-member-one/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/kind-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/missing-source/fixture 1`] = ` TSError { "column": 13, @@ -102,12 +100,14 @@ TSError { } `; -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/_error_/type-kind/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/assertion/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; +exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/kind-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; + exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/named/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; +exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/type-kind/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; + exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportAllDeclaration/fixtures/unnamed/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/declaration/ExportDefaultDeclaration/fixtures/_error_/enum/fixture 1`] = ` @@ -918,8 +918,6 @@ TSError { } `; -exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-type-star-from/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; - exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/export-with-import-assertions/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/_error_/import-type-error/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; @@ -1136,6 +1134,8 @@ exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" e exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type-from-as/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; +exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/export-type-star-from/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; + exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-anonymus-with-type-parameters/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; exports[`Parse all fixtures with "errorOnTypeScriptSyntacticAndSemanticIssues" enabled fixtures/legacy-fixtures/basics/fixtures/function-anynomus-with-return-type/fixture 1`] = `"TEST OUTPUT: No semantic or syntactic issues found"`; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy