Use full import specifier path in tests (#13938)
This commit is contained in:
@@ -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;';
|
||||
|
||||
@@ -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";';
|
||||
|
||||
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user