diff --git a/packages/babel-code-frame/test/index.js b/packages/babel-code-frame/test/index.js index 397a78f1c52b..926d0e11591e 100644 --- a/packages/babel-code-frame/test/index.js +++ b/packages/babel-code-frame/test/index.js @@ -1,6 +1,6 @@ import chalk from "chalk"; import stripAnsi from "strip-ansi"; -import codeFrame, { codeFrameColumns } from ".."; +import codeFrame, { codeFrameColumns } from "../lib/index.js"; describe("@babel/code-frame", function () { test("basic usage", function () { diff --git a/packages/babel-core/test/async.js b/packages/babel-core/test/async.js index 4f0e8b9eec97..a7cb2856a27f 100644 --- a/packages/babel-core/test/async.js +++ b/packages/babel-core/test/async.js @@ -1,6 +1,6 @@ import path from "path"; import { fileURLToPath } from "url"; -import * as babel from ".."; +import * as babel from "../lib/index.js"; import { spawnTransformAsync, diff --git a/packages/babel-helper-compilation-targets/test/targets-parser.spec.js b/packages/babel-helper-compilation-targets/test/targets-parser.spec.js index 404514775553..60451fb9a844 100644 --- a/packages/babel-helper-compilation-targets/test/targets-parser.spec.js +++ b/packages/babel-helper-compilation-targets/test/targets-parser.spec.js @@ -1,7 +1,7 @@ import browserslist from "browserslist"; import { join, dirname } from "path"; import { fileURLToPath } from "url"; -import getTargets from ".."; +import getTargets from "../lib/index.js"; describe("getTargets", () => { it("parses", () => { diff --git a/packages/babel-helper-optimise-call-expression/test/index.js b/packages/babel-helper-optimise-call-expression/test/index.js index a98d91d01b48..a4fe3601725f 100644 --- a/packages/babel-helper-optimise-call-expression/test/index.js +++ b/packages/babel-helper-optimise-call-expression/test/index.js @@ -1,7 +1,7 @@ import { parse } from "@babel/parser"; import generator from "@babel/generator"; import * as t from "@babel/types"; -import optimizeCallExpression from ".."; +import optimizeCallExpression from "../lib/index.js"; function transformInput(input, thisIdentifier) { const ast = parse(input); diff --git a/packages/babel-helper-transform-fixture-test-runner/test/index.js b/packages/babel-helper-transform-fixture-test-runner/test/index.js index a13d6687ee66..1cc6e095d893 100644 --- a/packages/babel-helper-transform-fixture-test-runner/test/index.js +++ b/packages/babel-helper-transform-fixture-test-runner/test/index.js @@ -1,4 +1,4 @@ -import { runCodeInTestContext } from ".."; +import { runCodeInTestContext } from "../lib/index.js"; import { fileURLToPath } from "url"; const filename = fileURLToPath(import.meta.url); diff --git a/packages/babel-helper-validator-identifier/test/identifier.spec.js b/packages/babel-helper-validator-identifier/test/identifier.spec.js index 65a14a0e298f..f3123a29660b 100644 --- a/packages/babel-helper-validator-identifier/test/identifier.spec.js +++ b/packages/babel-helper-validator-identifier/test/identifier.spec.js @@ -1,4 +1,4 @@ -import { isIdentifierName } from ".."; +import { isIdentifierName } from "../lib/index.js"; describe("isIdentifierName", function () { it("returns false if provided string is empty", function () { diff --git a/packages/babel-helper-validator-option/test/find-suggestion.spec.js b/packages/babel-helper-validator-option/test/find-suggestion.spec.js index db6a20cc2833..7a5a20d6ddf3 100644 --- a/packages/babel-helper-validator-option/test/find-suggestion.spec.js +++ b/packages/babel-helper-validator-option/test/find-suggestion.spec.js @@ -1,4 +1,4 @@ -import { findSuggestion } from ".."; +import { findSuggestion } from "../lib/index.js"; describe("findSuggestion", function () { test.each([ diff --git a/packages/babel-helper-validator-option/test/validator.spec.js b/packages/babel-helper-validator-option/test/validator.spec.js index dc27b524d27b..2bdab23f9434 100644 --- a/packages/babel-helper-validator-option/test/validator.spec.js +++ b/packages/babel-helper-validator-option/test/validator.spec.js @@ -1,4 +1,4 @@ -import { OptionValidator } from ".."; +import { OptionValidator } from "../lib/index.js"; describe("OptionValidator", () => { describe("validateTopLevelOptions", () => { diff --git a/packages/babel-highlight/test/index.js b/packages/babel-highlight/test/index.js index 64877c7f7f35..b6a7f4da4de7 100644 --- a/packages/babel-highlight/test/index.js +++ b/packages/babel-highlight/test/index.js @@ -1,6 +1,6 @@ import chalk from "chalk"; import stripAnsi from "strip-ansi"; -import highlight, { shouldHighlight, getChalk } from ".."; +import highlight, { shouldHighlight, getChalk } from "../lib/index.js"; describe("@babel/highlight", function () { function stubColorSupport(supported) { diff --git a/packages/babel-plugin-proposal-class-static-block/test/plugin-ordering.test.js b/packages/babel-plugin-proposal-class-static-block/test/plugin-ordering.test.js index 0e1fae77548e..7531f51c4d53 100644 --- a/packages/babel-plugin-proposal-class-static-block/test/plugin-ordering.test.js +++ b/packages/babel-plugin-proposal-class-static-block/test/plugin-ordering.test.js @@ -1,5 +1,5 @@ import * as babel from "@babel/core"; -import proposalClassStaticBlock from ".."; +import proposalClassStaticBlock from "../lib/index.js"; describe("plugin ordering", () => { it("should work when @babel/plugin-proposal-class-static-block is after class features plugin", () => { diff --git a/packages/babel-plugin-transform-modules-commonjs/test/copied-nodes.js b/packages/babel-plugin-transform-modules-commonjs/test/copied-nodes.js index 4fb76081850a..ac37d47669b1 100644 --- a/packages/babel-plugin-transform-modules-commonjs/test/copied-nodes.js +++ b/packages/babel-plugin-transform-modules-commonjs/test/copied-nodes.js @@ -2,7 +2,7 @@ import * as babel from "@babel/core"; import { fileURLToPath } from "url"; import path from "path"; -import transformCommonJS from ".."; +import transformCommonJS from "../lib/index.js"; test("Doesn't use the same object for two different nodes in the AST", function () { const code = 'import Foo from "bar"; Foo; Foo;'; diff --git a/packages/babel-plugin-transform-modules-commonjs/test/esmodule-flag.js b/packages/babel-plugin-transform-modules-commonjs/test/esmodule-flag.js index cdb44988f7a4..7d84cbe73559 100644 --- a/packages/babel-plugin-transform-modules-commonjs/test/esmodule-flag.js +++ b/packages/babel-plugin-transform-modules-commonjs/test/esmodule-flag.js @@ -3,7 +3,7 @@ import vm from "vm"; import { fileURLToPath } from "url"; import path from "path"; -import transformCommonJS from ".."; +import transformCommonJS from "../lib/index.js"; test("Re-export doesn't overwrite __esModule flag", function () { let code = 'export * from "./dep";'; diff --git a/packages/babel-plugin-transform-typeof-symbol/test/helper.spec.js b/packages/babel-plugin-transform-typeof-symbol/test/helper.spec.js index 7d84993c92e3..1a29b705de50 100644 --- a/packages/babel-plugin-transform-typeof-symbol/test/helper.spec.js +++ b/packages/babel-plugin-transform-typeof-symbol/test/helper.spec.js @@ -2,7 +2,7 @@ import * as babel from "@babel/core"; import fs from "fs"; import { createRequire } from "module"; -import transformTypeofSymbol from ".."; +import transformTypeofSymbol from "../lib/index.js"; const require = createRequire(import.meta.url); diff --git a/packages/babel-preset-env/test/regressions.js b/packages/babel-preset-env/test/regressions.js index 50fb6ef2db47..557c0719607d 100644 --- a/packages/babel-preset-env/test/regressions.js +++ b/packages/babel-preset-env/test/regressions.js @@ -1,5 +1,5 @@ import * as babel7_12 from "@babel/core"; -import env from ".."; +import env from "../lib/index.js"; import path from "path"; import { fileURLToPath } from "url"; diff --git a/packages/babel-preset-env/test/top-level-await.js b/packages/babel-preset-env/test/top-level-await.js index 65c222af71e9..93d92de07884 100644 --- a/packages/babel-preset-env/test/top-level-await.js +++ b/packages/babel-preset-env/test/top-level-await.js @@ -1,4 +1,4 @@ -import env from ".."; +import env from "../lib/index.js"; import * as babel from "@babel/core"; describe("supportsTopLevelAwait enables the parser plugin for old parser versions", () => {