shaketbaby / directory-named-webpack-plugin

A Webpack plugin that treats a file with the name of directory as the index file
MIT License
182 stars 17 forks source link

add test solution to readme #22

Open mkg0 opened 6 years ago

mkg0 commented 6 years ago

Hello,

While using directory-named-webpack-plugin testing being hard. I created a plugin for enhancing jest's resolving behavior with webpack resolver( also its resolving plugins). https://github.com/mkg0/jest-webpack-resolver

Maybe you can add it for offering testing solution with jest

shaketbaby commented 6 years ago

Not sure what's the difficulty with testing. I am using the plugin in our projects and we don't have any issue using karma-webpack to prepare the bundle for testing. Can you please elaborate a bit more? Also, you are welcome to update the Readme and send a PR.

mkg0 commented 6 years ago

When configuring solid test environment (instead of bundling tests with webpack) needs to handle unresolved paths. It can be useful if you give information about testing for newcomers. Or newcomers maybe think it's not testable.

shaketbaby commented 6 years ago

Sorry, I am not sure what did you mean by configuring solid test environment?