diff --git a/.editorconfig b/.editorconfig index d38c249a7aa9..e86321667115 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,7 +6,7 @@ charset = utf-8 trim_trailing_whitespace = true end_of_line = lf -[*.{js,json}] +[*.{js,json,ts,tsx}] indent_style = space indent_size = 2 diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/annotated/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/arrow-function-with-newline/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async-await-null/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic-false-positive/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest-optional-parameter/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async-rest/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/async/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/default-parameter-values/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/destructuring/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/generic-tsx/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/optional-parameter/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.js b/packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.js rename to packages/babel-parser/test/fixtures/typescript/arrow-function/predicate-types/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-as/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-as/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-as/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-as/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-assertion/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-assertion/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-assertion/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-async-parameter-assertion/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens-with-parens-node/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens-with-parens-node/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens-with-parens-node/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens-with-parens-node/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-in-parens/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-as/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-as/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-as/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-as/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-assertion/input.js b/packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-assertion/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-assertion/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/arrow-parameter-assertion/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/as-const/input.js b/packages/babel-parser/test/fixtures/typescript/cast/as-const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/as-const/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/as-const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/as/input.js b/packages/babel-parser/test/fixtures/typescript/cast/as/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/as/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/as/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/assert-and-assign/input.js b/packages/babel-parser/test/fixtures/typescript/cast/assert-and-assign/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/assert-and-assign/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/assert-and-assign/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/false-positive/input.js b/packages/babel-parser/test/fixtures/typescript/cast/false-positive/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/false-positive/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/false-positive/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/multiple-assert-and-assign/input.js b/packages/babel-parser/test/fixtures/typescript/cast/multiple-assert-and-assign/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/multiple-assert-and-assign/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/multiple-assert-and-assign/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/need-parentheses/input.js b/packages/babel-parser/test/fixtures/typescript/cast/need-parentheses/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/need-parentheses/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/need-parentheses/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-2/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-2/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-2/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-2/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-3/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-3/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-3/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-3/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign-2/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign-2/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign-2/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign-2/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-and-assign/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-false-positive/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-false-positive/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-false-positive/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-false-positive/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-then-property-access/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion-then-property-access/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion-then-property-access/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion-then-property-access/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/null-assertion/input.js b/packages/babel-parser/test/fixtures/typescript/cast/null-assertion/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/null-assertion/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/null-assertion/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-after-operator/input.js b/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-after-operator/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/type-assertion-after-operator/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/type-assertion-after-operator/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-and-assign/input.js b/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-and-assign/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/type-assertion-and-assign/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/type-assertion-and-assign/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-before-operator/input.js b/packages/babel-parser/test/fixtures/typescript/cast/type-assertion-before-operator/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/type-assertion-before-operator/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/type-assertion-before-operator/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/cast/type-assertion/input.js b/packages/babel-parser/test/fixtures/typescript/cast/type-assertion/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/cast/type-assertion/input.js rename to packages/babel-parser/test/fixtures/typescript/cast/type-assertion/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/abstract-false-positive/input.js b/packages/babel-parser/test/fixtures/typescript/class/abstract-false-positive/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/abstract-false-positive/input.js rename to packages/babel-parser/test/fixtures/typescript/class/abstract-false-positive/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/abstract-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/class/abstract-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/abstract-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/class/abstract-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/abstract/input.js b/packages/babel-parser/test/fixtures/typescript/class/abstract/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/abstract/input.js rename to packages/babel-parser/test/fixtures/typescript/class/abstract/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/constructor-with-modifier-names/input.js b/packages/babel-parser/test/fixtures/typescript/class/constructor-with-modifier-names/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/constructor-with-modifier-names/input.js rename to packages/babel-parser/test/fixtures/typescript/class/constructor-with-modifier-names/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/constructor/input.js b/packages/babel-parser/test/fixtures/typescript/class/constructor/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/constructor/input.js rename to packages/babel-parser/test/fixtures/typescript/class/constructor/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/declare-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/class/declare-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/declare-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/class/declare-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/declare/input.js b/packages/babel-parser/test/fixtures/typescript/class/declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/declare/input.js rename to packages/babel-parser/test/fixtures/typescript/class/declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/expression-extends-implements/input.js b/packages/babel-parser/test/fixtures/typescript/class/expression-extends-implements/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/expression-extends-implements/input.js rename to packages/babel-parser/test/fixtures/typescript/class/expression-extends-implements/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/expression-extends/input.js b/packages/babel-parser/test/fixtures/typescript/class/expression-extends/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/expression-extends/input.js rename to packages/babel-parser/test/fixtures/typescript/class/expression-extends/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/expression-generic/input.js b/packages/babel-parser/test/fixtures/typescript/class/expression-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/expression-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/class/expression-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/expression-implements/input.js b/packages/babel-parser/test/fixtures/typescript/class/expression-implements/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/expression-implements/input.js rename to packages/babel-parser/test/fixtures/typescript/class/expression-implements/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/extends-empty/input.js b/packages/babel-parser/test/fixtures/typescript/class/extends-empty/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/extends-empty/input.js rename to packages/babel-parser/test/fixtures/typescript/class/extends-empty/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/extends-implements-empty/input.js b/packages/babel-parser/test/fixtures/typescript/class/extends-implements-empty/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/extends-implements-empty/input.js rename to packages/babel-parser/test/fixtures/typescript/class/extends-implements-empty/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/extends-implements/input.js b/packages/babel-parser/test/fixtures/typescript/class/extends-implements/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/extends-implements/input.js rename to packages/babel-parser/test/fixtures/typescript/class/extends-implements/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/extends/input.js b/packages/babel-parser/test/fixtures/typescript/class/extends/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/extends/input.js rename to packages/babel-parser/test/fixtures/typescript/class/extends/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/generic/input.js b/packages/babel-parser/test/fixtures/typescript/class/generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/generic/input.js rename to packages/babel-parser/test/fixtures/typescript/class/generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/get-generic/input.js b/packages/babel-parser/test/fixtures/typescript/class/get-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/get-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/class/get-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/implements-empty/input.js b/packages/babel-parser/test/fixtures/typescript/class/implements-empty/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/implements-empty/input.js rename to packages/babel-parser/test/fixtures/typescript/class/implements-empty/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/implements/input.js b/packages/babel-parser/test/fixtures/typescript/class/implements/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/implements/input.js rename to packages/babel-parser/test/fixtures/typescript/class/implements/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/index-signature/input.js b/packages/babel-parser/test/fixtures/typescript/class/index-signature/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/index-signature/input.js rename to packages/babel-parser/test/fixtures/typescript/class/index-signature/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/members-with-modifier-names/input.js b/packages/babel-parser/test/fixtures/typescript/class/members-with-modifier-names/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/members-with-modifier-names/input.js rename to packages/babel-parser/test/fixtures/typescript/class/members-with-modifier-names/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/members-with-reserved-names/input.js b/packages/babel-parser/test/fixtures/typescript/class/members-with-reserved-names/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/members-with-reserved-names/input.js rename to packages/babel-parser/test/fixtures/typescript/class/members-with-reserved-names/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-computed/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-computed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-computed/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-computed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-generic/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-no-body/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-no-body/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-no-body/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-no-body/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-optional/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-optional/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-optional/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-optional/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-readonly/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-readonly/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-readonly/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-readonly/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-return-type/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-return-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-return-type/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-return-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-with-newline-with-body/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-with-newline-with-body/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-with-newline-with-body/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-with-newline-with-body/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/method-with-newline-without-body/input.js b/packages/babel-parser/test/fixtures/typescript/class/method-with-newline-without-body/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/method-with-newline-without-body/input.js rename to packages/babel-parser/test/fixtures/typescript/class/method-with-newline-without-body/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/modifiers-accessors/input.js b/packages/babel-parser/test/fixtures/typescript/class/modifiers-accessors/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/modifiers-accessors/input.js rename to packages/babel-parser/test/fixtures/typescript/class/modifiers-accessors/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/modifiers-methods-async/input.js b/packages/babel-parser/test/fixtures/typescript/class/modifiers-methods-async/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/modifiers-methods-async/input.js rename to packages/babel-parser/test/fixtures/typescript/class/modifiers-methods-async/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/modifiers-properties/input.js b/packages/babel-parser/test/fixtures/typescript/class/modifiers-properties/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/modifiers-properties/input.js rename to packages/babel-parser/test/fixtures/typescript/class/modifiers-properties/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/parameter-properties-binding-patterns/input.js b/packages/babel-parser/test/fixtures/typescript/class/parameter-properties-binding-patterns/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/parameter-properties-binding-patterns/input.js rename to packages/babel-parser/test/fixtures/typescript/class/parameter-properties-binding-patterns/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/parameter-properties-with-decorators/input.js b/packages/babel-parser/test/fixtures/typescript/class/parameter-properties-with-decorators/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/parameter-properties-with-decorators/input.js rename to packages/babel-parser/test/fixtures/typescript/class/parameter-properties-with-decorators/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/parameter-properties/input.js b/packages/babel-parser/test/fixtures/typescript/class/parameter-properties/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/parameter-properties/input.js rename to packages/babel-parser/test/fixtures/typescript/class/parameter-properties/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/predicate-types/input.js b/packages/babel-parser/test/fixtures/typescript/class/predicate-types/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/predicate-types/input.js rename to packages/babel-parser/test/fixtures/typescript/class/predicate-types/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/properties/input.js b/packages/babel-parser/test/fixtures/typescript/class/properties/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/properties/input.js rename to packages/babel-parser/test/fixtures/typescript/class/properties/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/property-computed/input.js b/packages/babel-parser/test/fixtures/typescript/class/property-computed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/property-computed/input.js rename to packages/babel-parser/test/fixtures/typescript/class/property-computed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/property-optional-definite-assignment-not-allowed/input.js b/packages/babel-parser/test/fixtures/typescript/class/property-optional-definite-assignment-not-allowed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/property-optional-definite-assignment-not-allowed/input.js rename to packages/babel-parser/test/fixtures/typescript/class/property-optional-definite-assignment-not-allowed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/class/static/input.js b/packages/babel-parser/test/fixtures/typescript/class/static/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/class/static/input.js rename to packages/babel-parser/test/fixtures/typescript/class/static/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.js b/packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.js rename to packages/babel-parser/test/fixtures/typescript/const/no-initializer/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.js b/packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.js rename to packages/babel-parser/test/fixtures/typescript/const/reserved-word/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/const-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/const/input.js b/packages/babel-parser/test/fixtures/typescript/declare/const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/const/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/destructure-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/destructure/input.js b/packages/babel-parser/test/fixtures/typescript/declare/destructure/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/destructure/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/destructure/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/interface-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/interface/input.js b/packages/babel-parser/test/fixtures/typescript/declare/interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/interface/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/let-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/let/input.js b/packages/babel-parser/test/fixtures/typescript/declare/let/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/let/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/let/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/var-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/declare/var/input.js b/packages/babel-parser/test/fixtures/typescript/declare/var/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/declare/var/input.js rename to packages/babel-parser/test/fixtures/typescript/declare/var/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/decorators/type-arguments-invalid/input.js b/packages/babel-parser/test/fixtures/typescript/decorators/type-arguments-invalid/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/decorators/type-arguments-invalid/input.js rename to packages/babel-parser/test/fixtures/typescript/decorators/type-arguments-invalid/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/decorators/type-arguments/input.js b/packages/babel-parser/test/fixtures/typescript/decorators/type-arguments/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/decorators/type-arguments/input.js rename to packages/babel-parser/test/fixtures/typescript/decorators/type-arguments/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/const/input.js b/packages/babel-parser/test/fixtures/typescript/enum/const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/const/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/declare-const/input.js b/packages/babel-parser/test/fixtures/typescript/enum/declare-const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/declare-const/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/declare-const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/declare/input.js b/packages/babel-parser/test/fixtures/typescript/enum/declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/declare/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/export-const/input.js b/packages/babel-parser/test/fixtures/typescript/enum/export-const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/export-const/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/export-const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/export-declare-const/input.js b/packages/babel-parser/test/fixtures/typescript/enum/export-declare-const/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/export-declare-const/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/export-declare-const/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/export/input.js b/packages/babel-parser/test/fixtures/typescript/enum/export/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/export/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/export/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/members-reserved-words/input.js b/packages/babel-parser/test/fixtures/typescript/enum/members-reserved-words/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/members-reserved-words/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/members-reserved-words/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/members-strings/input.js b/packages/babel-parser/test/fixtures/typescript/enum/members-strings/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/members-strings/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/members-strings/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma-with-initializer/input.js b/packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma-with-initializer/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma-with-initializer/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma-with-initializer/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma/input.js b/packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/members-trailing-comma/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/enum/members/input.js b/packages/babel-parser/test/fixtures/typescript/enum/members/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/enum/members/input.js rename to packages/babel-parser/test/fixtures/typescript/enum/members/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/estree-compat/shorthand-ambient-module/input.js b/packages/babel-parser/test/fixtures/typescript/estree-compat/shorthand-ambient-module/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/estree-compat/shorthand-ambient-module/input.js rename to packages/babel-parser/test/fixtures/typescript/estree-compat/shorthand-ambient-module/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.js b/packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.js rename to packages/babel-parser/test/fixtures/typescript/export/as-namespace/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/export/declare/input.js b/packages/babel-parser/test/fixtures/typescript/export/declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/export/declare/input.js rename to packages/babel-parser/test/fixtures/typescript/export/declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/export/equals/input.js b/packages/babel-parser/test/fixtures/typescript/export/equals/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/export/equals/input.js rename to packages/babel-parser/test/fixtures/typescript/export/equals/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.js b/packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.js rename to packages/babel-parser/test/fixtures/typescript/export/nested-same-name/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/annotated/input.js b/packages/babel-parser/test/fixtures/typescript/function/annotated/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/annotated/input.js rename to packages/babel-parser/test/fixtures/typescript/function/annotated/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/anonymous/input.js b/packages/babel-parser/test/fixtures/typescript/function/anonymous/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/anonymous/input.js rename to packages/babel-parser/test/fixtures/typescript/function/anonymous/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/declare/input.js b/packages/babel-parser/test/fixtures/typescript/function/declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/declare/input.js rename to packages/babel-parser/test/fixtures/typescript/function/declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/export-default/input.js b/packages/babel-parser/test/fixtures/typescript/function/export-default/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/export-default/input.js rename to packages/babel-parser/test/fixtures/typescript/function/export-default/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.js b/packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.js rename to packages/babel-parser/test/fixtures/typescript/function/getter-setter/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/overloads/input.js b/packages/babel-parser/test/fixtures/typescript/function/overloads/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/overloads/input.js rename to packages/babel-parser/test/fixtures/typescript/function/overloads/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/pattern-parameters/input.js b/packages/babel-parser/test/fixtures/typescript/function/pattern-parameters/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/pattern-parameters/input.js rename to packages/babel-parser/test/fixtures/typescript/function/pattern-parameters/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.js b/packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.js rename to packages/babel-parser/test/fixtures/typescript/function/predicate-types/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/import/equals-require/input.js b/packages/babel-parser/test/fixtures/typescript/import/equals-require/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/import/equals-require/input.js rename to packages/babel-parser/test/fixtures/typescript/import/equals-require/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/import/equals/input.js b/packages/babel-parser/test/fixtures/typescript/import/equals/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/import/equals/input.js rename to packages/babel-parser/test/fixtures/typescript/import/equals/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.js b/packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.js rename to packages/babel-parser/test/fixtures/typescript/import/export-import-require/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/import/export-import/input.js b/packages/babel-parser/test/fixtures/typescript/import/export-import/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/import/export-import/input.js rename to packages/babel-parser/test/fixtures/typescript/import/export-import/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.js b/packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.js rename to packages/babel-parser/test/fixtures/typescript/import/not-top-level/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/call-signature/input.js b/packages/babel-parser/test/fixtures/typescript/interface/call-signature/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/call-signature/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/call-signature/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/construct-signature/input.js b/packages/babel-parser/test/fixtures/typescript/interface/construct-signature/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/construct-signature/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/construct-signature/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/export-abstract-interface/input.js b/packages/babel-parser/test/fixtures/typescript/interface/export-abstract-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/export-abstract-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/export-abstract-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/export/input.js b/packages/babel-parser/test/fixtures/typescript/interface/export/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/export/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/export/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/extends/input.js b/packages/babel-parser/test/fixtures/typescript/interface/extends/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/extends/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/extends/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/generic/input.js b/packages/babel-parser/test/fixtures/typescript/interface/generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/generic/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/index-signature/input.js b/packages/babel-parser/test/fixtures/typescript/interface/index-signature/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/index-signature/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/index-signature/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/method-computed/input.js b/packages/babel-parser/test/fixtures/typescript/interface/method-computed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/method-computed/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/method-computed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/method-generic/input.js b/packages/babel-parser/test/fixtures/typescript/interface/method-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/method-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/method-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/method-optional/input.js b/packages/babel-parser/test/fixtures/typescript/interface/method-optional/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/method-optional/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/method-optional/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/method-plain/input.js b/packages/babel-parser/test/fixtures/typescript/interface/method-plain/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/method-plain/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/method-plain/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/modifiers/input.js b/packages/babel-parser/test/fixtures/typescript/interface/modifiers/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/modifiers/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/modifiers/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/input.js b/packages/babel-parser/test/fixtures/typescript/interface/new-line-error/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/new-line-error/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/new-line-error/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/new-line/input.js b/packages/babel-parser/test/fixtures/typescript/interface/new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/properties/input.js b/packages/babel-parser/test/fixtures/typescript/interface/properties/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/properties/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/properties/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/property-computed/input.js b/packages/babel-parser/test/fixtures/typescript/interface/property-computed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/property-computed/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/property-computed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/property-named-public/input.js b/packages/babel-parser/test/fixtures/typescript/interface/property-named-public/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/property-named-public/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/property-named-public/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/reserved-method-name/input.js b/packages/babel-parser/test/fixtures/typescript/interface/reserved-method-name/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/reserved-method-name/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/reserved-method-name/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/interface/separators/input.js b/packages/babel-parser/test/fixtures/typescript/interface/separators/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/interface/separators/input.js rename to packages/babel-parser/test/fixtures/typescript/interface/separators/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/legacy-decorators/abstract-class/input.js b/packages/babel-parser/test/fixtures/typescript/legacy-decorators/abstract-class/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/legacy-decorators/abstract-class/input.js rename to packages/babel-parser/test/fixtures/typescript/legacy-decorators/abstract-class/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/legacy-decorators/type-arguments/input.js b/packages/babel-parser/test/fixtures/typescript/legacy-decorators/type-arguments/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/legacy-decorators/type-arguments/input.js rename to packages/babel-parser/test/fixtures/typescript/legacy-decorators/type-arguments/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/body-declare/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/body-declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/body-declare/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/body-declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested-declare/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested-declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested-declare/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested-declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/body-nested/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/body/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/body/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/body/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/body/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/declare-shorthand/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/declare-shorthand/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/declare-shorthand/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/declare-shorthand/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/global-in-module/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/global-in-module/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/global-in-module/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/global-in-module/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/head-declare/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/head-declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/head-declare/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/head-declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/head-export/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/head-export/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/head-export/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/head-export/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/head/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/head/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/head/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/head/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line-error/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/module-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line-error/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line/input.js b/packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/module-namespace/namespace-new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/regression/async-arrow-generic-9560/input.js b/packages/babel-parser/test/fixtures/typescript/regression/async-arrow-generic-9560/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/regression/async-arrow-generic-9560/input.js rename to packages/babel-parser/test/fixtures/typescript/regression/async-arrow-generic-9560/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/regression/destructuring-in-function-type/input.js b/packages/babel-parser/test/fixtures/typescript/regression/destructuring-in-function-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/regression/destructuring-in-function-type/input.js rename to packages/babel-parser/test/fixtures/typescript/regression/destructuring-in-function-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/regression/is-default-export/input.js b/packages/babel-parser/test/fixtures/typescript/regression/is-default-export/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/regression/is-default-export/input.js rename to packages/babel-parser/test/fixtures/typescript/regression/is-default-export/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/regression/issue-7742/input.js b/packages/babel-parser/test/fixtures/typescript/regression/issue-7742/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/regression/issue-7742/input.js rename to packages/babel-parser/test/fixtures/typescript/regression/issue-7742/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/regression/less-than-edge-case/input.js b/packages/babel-parser/test/fixtures/typescript/regression/less-than-edge-case/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/regression/less-than-edge-case/input.js rename to packages/babel-parser/test/fixtures/typescript/regression/less-than-edge-case/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/enum-block-scoped/input.js b/packages/babel-parser/test/fixtures/typescript/scope/enum-block-scoped/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/enum-block-scoped/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/enum-block-scoped/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-after/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-after/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-after/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-after/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-before/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-before/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-before/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-declare-function-before/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-enum-after/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-enum-after/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-enum-after/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-enum-after/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-enum-before/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-enum-before/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-enum-before/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-enum-before/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-interface-after/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-interface-after/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-interface-after/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-interface-after/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-interface-before/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-interface-before/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-interface-before/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-interface-before/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-namespace/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-namespace/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-namespace/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-namespace/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-type-after/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-type-after/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-type-after/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-type-after/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/export-type-before/input.js b/packages/babel-parser/test/fixtures/typescript/scope/export-type-before/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/export-type-before/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/export-type-before/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/function-type-before-declaration/input.js b/packages/babel-parser/test/fixtures/typescript/scope/function-type-before-declaration/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/function-type-before-declaration/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/function-type-before-declaration/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-class/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-class-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-const-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-const-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-const-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-const-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-constenum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-constenum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-constenum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-constenum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-constenum-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-class/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-constenum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-function/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-let/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-enum-var/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-function-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-class/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-class/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-class/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-class/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-function/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-function/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-function/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-function/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-let/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-let/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-let/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-let/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-var/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-var/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-var/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-interface-var/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-let-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-class/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-function/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-function/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-function/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-function/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-let/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-let/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-let/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-let/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-var/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-var/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-var/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-type-var/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-enum/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-interface/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-interface/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-interface/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-interface/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-type/input.js b/packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-type/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-type/input.js rename to packages/babel-parser/test/fixtures/typescript/scope/redeclaration-var-type/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/tsx/brace-is-block/input.js b/packages/babel-parser/test/fixtures/typescript/tsx/brace-is-block/input.tsx similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/tsx/brace-is-block/input.js rename to packages/babel-parser/test/fixtures/typescript/tsx/brace-is-block/input.tsx diff --git a/packages/babel-parser/test/fixtures/typescript/tsx/type-arguments/input.js b/packages/babel-parser/test/fixtures/typescript/tsx/type-arguments/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/tsx/type-arguments/input.js rename to packages/babel-parser/test/fixtures/typescript/tsx/type-arguments/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/tsx/type-parameters/input.js b/packages/babel-parser/test/fixtures/typescript/tsx/type-parameters/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/tsx/type-parameters/input.js rename to packages/babel-parser/test/fixtures/typescript/tsx/type-parameters/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.js b/packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.js rename to packages/babel-parser/test/fixtures/typescript/type-alias/declare/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/export/input.js b/packages/babel-parser/test/fixtures/typescript/type-alias/export/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-alias/export/input.js rename to packages/babel-parser/test/fixtures/typescript/type-alias/export/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex/input.js b/packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex/input.js rename to packages/babel-parser/test/fixtures/typescript/type-alias/generic-complex/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.js b/packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.js rename to packages/babel-parser/test/fixtures/typescript/type-alias/generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.js b/packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.js rename to packages/babel-parser/test/fixtures/typescript/type-alias/plain/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/call/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/call/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/call/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/call/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/empty/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/empty/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/empty/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/empty/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive-2/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive-2/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive-2/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive-2/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/new-false-positive/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/new/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/new/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/new/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/new/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template-no-asi/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template-no-asi/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template-no-asi/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template-no-asi/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/tagged-template/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/tsx/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/whitespace/input.js b/packages/babel-parser/test/fixtures/typescript/type-arguments/whitespace/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/type-arguments/whitespace/input.js rename to packages/babel-parser/test/fixtures/typescript/type-arguments/whitespace/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/array/input.js b/packages/babel-parser/test/fixtures/typescript/types/array/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/array/input.js rename to packages/babel-parser/test/fixtures/typescript/types/array/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/conditional-infer/input.js b/packages/babel-parser/test/fixtures/typescript/types/conditional-infer/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/conditional-infer/input.js rename to packages/babel-parser/test/fixtures/typescript/types/conditional-infer/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/conditional/input.js b/packages/babel-parser/test/fixtures/typescript/types/conditional/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/conditional/input.js rename to packages/babel-parser/test/fixtures/typescript/types/conditional/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/function-generic/input.js b/packages/babel-parser/test/fixtures/typescript/types/function-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/function-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/types/function-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/function-in-generic/input.js b/packages/babel-parser/test/fixtures/typescript/types/function-in-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/function-in-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/types/function-in-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/function-with-this/input.js b/packages/babel-parser/test/fixtures/typescript/types/function-with-this/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/function-with-this/input.js rename to packages/babel-parser/test/fixtures/typescript/types/function-with-this/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/function/input.js b/packages/babel-parser/test/fixtures/typescript/types/function/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/function/input.js rename to packages/babel-parser/test/fixtures/typescript/types/function/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/import/input.js b/packages/babel-parser/test/fixtures/typescript/types/import/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/import/input.js rename to packages/babel-parser/test/fixtures/typescript/types/import/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/indexed/input.js b/packages/babel-parser/test/fixtures/typescript/types/indexed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/indexed/input.js rename to packages/babel-parser/test/fixtures/typescript/types/indexed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/keywords/input.js b/packages/babel-parser/test/fixtures/typescript/types/keywords/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/keywords/input.js rename to packages/babel-parser/test/fixtures/typescript/types/keywords/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-boolean/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-boolean/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-boolean/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-boolean/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-number-negative/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-number-negative/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-number-negative/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-number-negative/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-number/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-number/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-number/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-number/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-string-1/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-string-1/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-string-1/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-string-1/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-string-2/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-string-2/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-string-2/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-string-2/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/literal-string/input.js b/packages/babel-parser/test/fixtures/typescript/types/literal-string/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/literal-string/input.js rename to packages/babel-parser/test/fixtures/typescript/types/literal-string/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/mapped/input.js b/packages/babel-parser/test/fixtures/typescript/types/mapped/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/mapped/input.js rename to packages/babel-parser/test/fixtures/typescript/types/mapped/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/new-line/input.js b/packages/babel-parser/test/fixtures/typescript/types/new-line/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/new-line/input.js rename to packages/babel-parser/test/fixtures/typescript/types/new-line/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/object-shorthand/input.js b/packages/babel-parser/test/fixtures/typescript/types/object-shorthand/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/object-shorthand/input.js rename to packages/babel-parser/test/fixtures/typescript/types/object-shorthand/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/parenthesized/input.js b/packages/babel-parser/test/fixtures/typescript/types/parenthesized/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/parenthesized/input.js rename to packages/babel-parser/test/fixtures/typescript/types/parenthesized/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/read-only-1/input.js b/packages/babel-parser/test/fixtures/typescript/types/read-only-1/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/read-only-1/input.js rename to packages/babel-parser/test/fixtures/typescript/types/read-only-1/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/read-only-2/input.js b/packages/babel-parser/test/fixtures/typescript/types/read-only-2/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/read-only-2/input.js rename to packages/babel-parser/test/fixtures/typescript/types/read-only-2/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/read-only-3/input.js b/packages/babel-parser/test/fixtures/typescript/types/read-only-3/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/read-only-3/input.js rename to packages/babel-parser/test/fixtures/typescript/types/read-only-3/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/read-only-4/input.js b/packages/babel-parser/test/fixtures/typescript/types/read-only-4/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/read-only-4/input.js rename to packages/babel-parser/test/fixtures/typescript/types/read-only-4/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/reference-generic-nested/input.js b/packages/babel-parser/test/fixtures/typescript/types/reference-generic-nested/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/reference-generic-nested/input.js rename to packages/babel-parser/test/fixtures/typescript/types/reference-generic-nested/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/reference-generic/input.js b/packages/babel-parser/test/fixtures/typescript/types/reference-generic/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/reference-generic/input.js rename to packages/babel-parser/test/fixtures/typescript/types/reference-generic/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/reference/input.js b/packages/babel-parser/test/fixtures/typescript/types/reference/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/reference/input.js rename to packages/babel-parser/test/fixtures/typescript/types/reference/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-empty/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-empty/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-empty/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-empty/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-optional-invalid/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-optional-invalid/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-optional-invalid/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-optional-invalid/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-optional/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-optional/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-optional/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-optional/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-rest-after-optional/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-rest-after-optional/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-rest-after-optional/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-rest-after-optional/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-rest-invalid/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-rest-invalid/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-rest-invalid/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-rest-invalid/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-rest/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple-rest/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple-rest/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple-rest/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple/input.js b/packages/babel-parser/test/fixtures/typescript/types/tuple/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/tuple/input.js rename to packages/babel-parser/test/fixtures/typescript/types/tuple/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/type-literal/input.js b/packages/babel-parser/test/fixtures/typescript/types/type-literal/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/type-literal/input.js rename to packages/babel-parser/test/fixtures/typescript/types/type-literal/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/type-operator/input.js b/packages/babel-parser/test/fixtures/typescript/types/type-operator/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/type-operator/input.js rename to packages/babel-parser/test/fixtures/typescript/types/type-operator/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/typeof/input.js b/packages/babel-parser/test/fixtures/typescript/types/typeof/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/typeof/input.js rename to packages/babel-parser/test/fixtures/typescript/types/typeof/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/types/union-intersection/input.js b/packages/babel-parser/test/fixtures/typescript/types/union-intersection/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/types/union-intersection/input.js rename to packages/babel-parser/test/fixtures/typescript/types/union-intersection/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment-not-allowed/input.js b/packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment-not-allowed/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment-not-allowed/input.js rename to packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment-not-allowed/input.ts diff --git a/packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment/input.js b/packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment/input.ts similarity index 100% rename from packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment/input.js rename to packages/babel-parser/test/fixtures/typescript/variable-declarator/definite-assignment/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/cast/as-expression/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/cast/as-expression/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/cast/as-expression/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/cast/as-expression/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/cast/multiple-assert-and-assign/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/cast/multiple-assert-and-assign/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/cast/multiple-assert-and-assign/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/cast/multiple-assert-and-assign/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/cast/non-null-assertion/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/cast/non-null-assertion/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/cast/non-null-assertion/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/cast/non-null-assertion/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/cast/type-assertion/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/cast/type-assertion/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/cast/type-assertion/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/cast/type-assertion/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/options.json index cd0f911709f1..8549cff84993 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-method/options.json @@ -7,5 +7,6 @@ "legacy": true } ] - ] + ], + "sourceType": "module" } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/options.json index cd0f911709f1..8549cff84993 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated-parameter/options.json @@ -7,5 +7,6 @@ "legacy": true } ] - ] + ], + "sourceType": "module" } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/options.json index cd0f911709f1..8549cff84993 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-class-decorated/options.json @@ -7,5 +7,6 @@ "legacy": true } ] - ] + ], + "sourceType": "module" } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/options.json new file mode 100644 index 000000000000..d5e8a7e4201b --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/class/export-default-abstract/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["transform-typescript"], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/head/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/head/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/head/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/head/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/index-signature/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/index-signature/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/index-signature/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/index-signature/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/methods/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/methods/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/methods/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/methods/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-late-super/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-late-super/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-late-super/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-late-super/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class-and-super/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class-and-super/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class-and-super/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class-and-super/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-class/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/options.json index e4c16fc7dcbf..767a4f891cc2 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-parameters/options.json @@ -1,3 +1,4 @@ { - "plugins": ["transform-typescript", "transform-parameters"] + "plugins": ["transform-typescript", "transform-parameters"], + "sourceType": "module" } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-super/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-super/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-super/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties-with-super/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/parameter-properties/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/properties/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/class/properties/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/class/properties/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/class/properties/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/options.json new file mode 100644 index 000000000000..d5e8a7e4201b --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/declarations/erased/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["transform-typescript"], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/const/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/const/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/const/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/const/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/constant-folding/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/constant-folding/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/constant-folding/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/constant-folding/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/export/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/enum/export/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/export/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/export/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/export/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/enum/export/options.json new file mode 100644 index 000000000000..d5e8a7e4201b --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/enum/export/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["transform-typescript"], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/inferred/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/inferred/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/inferred/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/inferred/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/inner-references/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/inner-references/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/inner-references/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/inner-references/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/non-foldable-constant/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/non-foldable-constant/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/non-foldable-constant/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/non-foldable-constant/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/non-scoped/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/non-scoped/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/non-scoped/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/non-scoped/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/scoped/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/scoped/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/scoped/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/scoped/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values-computed/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values-computed/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values-computed/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values-computed/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/enum/string-values/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/declare-namespace/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/declare-namespace/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/declare-namespace/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/declare-namespace/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/declared-types/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/declared-types/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/declared-types/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/declared-types/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/default-literal/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/export-from/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/export=/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/export=/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/export=/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/export=/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/interface/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/interface/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/interface/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/interface/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/exports/options.json new file mode 100644 index 000000000000..d5e8a7e4201b --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/exports/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["transform-typescript"], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/exports/simple/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/exports/simple/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/exports/simple/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/exports/simple/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/function/overloads/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/function/overloads/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/function/overloads/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/function/overloads/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/function/parameters/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/function/parameters/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/function/parameters/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/function/parameters/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/function/this-parameter/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/function/this-parameter/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/function/this-parameter/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/function/this-parameter/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/function/tuple-parameter/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/function/tuple-parameter/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/function/tuple-parameter/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/function/tuple-parameter/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-injected/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-injected/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-injected/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-injected/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-jsx-pragma-no/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-no-import-specifiers/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-no-import-specifiers/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-no-import-specifiers/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-no-import-specifiers/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact-no/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact-no/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact-no/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact-no/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-preact/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-2/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-2/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-2/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-2/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-3/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-3/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-3/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no-3/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react-no/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-react/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-typeof/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-typeof/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-typeof/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elide-typeof/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-locations/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-locations/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-locations/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-locations/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-qualifiedname/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-qualifiedname/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-qualifiedname/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-qualifiedname/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-rename/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-rename/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-rename/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elision-rename/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/elision/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/elision/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/elision/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-id/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-id/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-id/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-id/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-value/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-value/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-value/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/enum-value/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/import=/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/import=/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/import=/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/import=/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/imports/options.json new file mode 100644 index 000000000000..d5e8a7e4201b --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/imports/options.json @@ -0,0 +1,4 @@ +{ + "plugins": ["transform-typescript"], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/parameter-decorators/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/property-signature/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/property-signature/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/imports/property-signature/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/imports/property-signature/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/as-expression/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/as-expression/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/lvalues/as-expression/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/lvalues/as-expression/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/non-null/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/non-null/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/lvalues/non-null/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/lvalues/non-null/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/type-assertion/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/lvalues/type-assertion/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/lvalues/type-assertion/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/lvalues/type-assertion/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/canonical/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/canonical/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/canonical/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/canonical/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-class/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-class/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-class/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-class/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-enum/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-enum/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-enum/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-enum/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-export/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-export/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-export/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-export/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-import/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-import/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-import/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/clobber-import/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/contentious-names/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/contentious-names/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/contentious-names/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/contentious-names/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/export/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/export/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/export/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/export/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested-export/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested-export/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested-export/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested-export/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/module-nested/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/multiple/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/multiple/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/multiple/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/multiple/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/mutable-fail/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/mutable-fail/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/mutable-fail/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/mutable-fail/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/namespace-flag/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/namespace-flag/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/namespace-flag/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/namespace-flag/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/options.json new file mode 100644 index 000000000000..97510b096f8c --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/options.json @@ -0,0 +1,4 @@ +{ + "plugins": [["transform-typescript", { "allowNamespaces": true }]], + "sourceType": "module" +} diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/same-name/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/same-name/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/same-name/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/same-name/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/undeclared/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/undeclared/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/namespace/undeclared/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/namespace/undeclared/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/options.json index ed634a8c9790..5c79172a6082 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/options.json @@ -1,3 +1,3 @@ { - "plugins": [["transform-typescript", { "allowNamespaces": true }]] + "plugins": ["transform-typescript"] } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/input.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/input.mjs rename to packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/options.json b/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/options.json index 713ccc312f32..d70f2d214aa4 100644 --- a/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/options.json +++ b/packages/babel-plugin-transform-typescript/test/fixtures/regression/10162/options.json @@ -1,3 +1,4 @@ { - "plugins": ["./plugin.js", "transform-typescript"] + "plugins": ["./plugin.js", "transform-typescript"], + "sourceType": "module" } diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/call/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/call/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/call/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/call/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/new/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/new/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/new/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/new/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tagged-template/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tagged-template/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tagged-template/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tagged-template/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/type-arguments/tsx/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/exclamation/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/exclamation/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/exclamation/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/exclamation/input.ts diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/types-erased/input.js b/packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/types-erased/input.ts similarity index 100% rename from packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/types-erased/input.js rename to packages/babel-plugin-transform-typescript/test/fixtures/variable-declaration/types-erased/input.ts