webpack/test/configCases/container/module-federation/module.js

12 lines
389 B
JavaScript
Raw Normal View History

2020-04-10 12:21:31 +08:00
import abc from "abc/system-hello-world";
import def, { module } from "def/system-hello-world";
import def2, { module as module2 } from "def/system-hello/other/world";
2020-04-04 07:13:16 +08:00
export function test() {
2020-04-10 12:21:31 +08:00
expect(abc).toBe("abc system-hello-world");
2020-04-04 07:13:16 +08:00
expect(def).toBe("def");
expect(def2).toBe("def");
2020-04-10 12:21:31 +08:00
expect(module).toBe("system-hello-world");
expect(module2).toBe("system-hello/other/world");
2020-04-04 07:13:16 +08:00
}