Module Federation, How do we create unit tests for distributed code?!
4 min readApr 23, 2021
The curious case of Module Federation and how do we write tests for federated applications.
If you haven't heard by now — Module Federation is a way to simply import()
other modules/files between independently compiled and deployed bundles at runtime.
Possibilities are endless, especially after working with it for over a year. Before there was even an npm release, it was in production, installing directly from a branch on GitHub. It’s immensely more powerful then most think