Skip to content

Commit

Permalink
Replace from ".."
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 9, 2021
1 parent 9cb1b6b commit 9a07e1a
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 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 () {
Expand Down
2 changes: 1 addition & 1 deletion 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,
Expand Down
@@ -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", () => {
Expand Down
@@ -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);
Expand Down
@@ -1,4 +1,4 @@
import { runCodeInTestContext } from "..";
import { runCodeInTestContext } from "../lib/index.js";
import { fileURLToPath } from "url";

const filename = fileURLToPath(import.meta.url);
Expand Down
@@ -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 () {
Expand Down
@@ -1,4 +1,4 @@
import { findSuggestion } from "..";
import { findSuggestion } from "../lib/index.js";

describe("findSuggestion", function () {
test.each([
Expand Down
@@ -1,4 +1,4 @@
import { OptionValidator } from "..";
import { OptionValidator } from "../lib/index.js";

describe("OptionValidator", () => {
describe("validateTopLevelOptions", () => {
Expand Down
2 changes: 1 addition & 1 deletion 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) {
Expand Down
@@ -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", () => {
Expand Down
Expand Up @@ -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;';
Expand Down
Expand Up @@ -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";';
Expand Down
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion 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";

Expand Down
2 changes: 1 addition & 1 deletion 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", () => {
Expand Down

0 comments on commit 9a07e1a

Please sign in to comment.