60frames / jestpack

Jest Webpack Integration
MIT License
66 stars 3 forks source link

Webpack 5 support for module federation and Jest #21

Open testacode opened 3 years ago

testacode commented 3 years ago

Hi there! Just fell into this wonderful repo but no activity for 5 years.

Hope you are doing fine. I'm having some issues with webpack 5 and jest and if you are willing to take a look on this issue I have.

ScriptedAlchemy commented 3 years ago

I know this is an old project. But there's a legitimate reason to revive this tool which would be critical for webpack 5 federated unit testing.

If you're still active in OSS, would you consider it if other oss members tried to help?

I know the webpack 5 api very well. But am unfamiliar with jest.

richardscarrott commented 3 years ago

TBH this project became somewhat obsolete shortly after I released it because Jest was unfortunately all but rewritten and Jestpack relied on replacing Jest's module loader to get things working which they no longer support.

Having said that, Jest's rewrite made mocking non-js imports very easy which was the main problem we were facing at the time and additionally offered much better performance so I never felt the need to come back to Jestpack.

I'm not familiar with Webpack federated modules but I wonder if they could also be rewritten with the module name mapper?