Use full import specifier path in tests (#13938)
This commit is contained in:
@@ -3,6 +3,7 @@ import { createRequire } from "module";
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
it("module.exports.default is correctly updated", () => {
|
||||
// eslint-disable-next-line import/extensions
|
||||
const typeofHelper = require("@babel/runtime/helpers/typeof");
|
||||
|
||||
expect(typeof typeofHelper).toBe("function");
|
||||
|
||||
Reference in New Issue
Block a user