Use full import specifier path in tests (#13938)

This commit is contained in:
Nicolò Ribaudo
2021-11-24 11:43:18 +01:00
committed by GitHub
parent a470f7b479
commit 75996cb62b
107 changed files with 141 additions and 136 deletions

View File

@@ -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;';

View File

@@ -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";';

View File

@@ -1,5 +1,5 @@
import * as babel from "@babel/core";
import transformCommonjs from "../lib";
import transformCommonjs from "../lib/index.js";
import externalHelpers from "@babel/plugin-external-helpers";
it("'importInterop' accepts a function", function () {