mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
17 lines
494 B
JavaScript
17 lines
494 B
JavaScript
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");
|
|
expect(typeof typeofHelper.default).toBe("function");
|
|
|
|
typeofHelper();
|
|
|
|
expect(typeof typeofHelper).toBe("function");
|
|
expect(typeof typeofHelper.default).toBe("function");
|
|
});
|