Use Node.js interop when importing lib in test (#13995)

This commit is contained in:
Nicolò Ribaudo
2021-11-29 21:48:34 +01:00
committed by GitHub
parent 1bbe1fc3cb
commit 29de280006
51 changed files with 186 additions and 73 deletions

View File

@@ -1,6 +1,8 @@
import chalk from "chalk";
import stripAnsi from "strip-ansi";
import codeFrame, { codeFrameColumns } from "../lib/index.js";
import _codeFrame, { codeFrameColumns } from "../lib/index.js";
const codeFrame = _codeFrame.default;
describe("@babel/code-frame", function () {
test("basic usage", function () {