Testing
Module Federation with Vite and Testing with Vitest
Module Federation was originally a Webpack 5 feature, but @originjs/vite-plugin-federation brought it to the Vite ecosystem. Testing Vite-based federated modules requires a different setup than Webpack — Vitest is the natural testing tool, and the module resolution strategy for federated imports needs specific configuration. This guide covers