webpack/test/cases/async-modules/top-level-await/index.js

7 lines
178 B
JavaScript

it("should allow to use top-level-await", () => {
return import("./reexport").then(({ default: value, other }) => {
expect(value).toBe(42);
expect(other).toBe(42);
});
});