-
-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rewire integration #91
Comments
Hi Gilad, The first link will not work, because it doesn't support Webpack 2. The babel plugin might work, but need to check this. It will be certainly tricky for ES6. Generally speaking if you need private function testing / private vars testing - you are doing something wrong, but I understand there might be exceptions and scenarios where this approach is valid... |
Hi, I have a service which fetches data from DB then do some manipulation. But even without this, there is always exceptions:) By the way, I still haven't upgrade to webpack 2, so it might work:) |
Hi, Maybe approach like that in this answer might be more preferable ( |
This whole topic is controversal however :) If one would investigate compatibility of |
Ok, |
@GiladShoham Sure, thank you Gilad! |
Closing this, since not much activity happening and no clear plans when if we will work on it. Please reopen if you have another thoughts. |
Hi,
Would be great to integrate rewire (as a way to test private functions / vars)
It's a bit tricky with the es6 import/export and mocha webpack.
This might work:
https://www.npmjs.com/package/rewire-webpack
Or maybe this
https://github.com/speedskater/babel-plugin-rewire
What do you think?
Thanks.
The text was updated successfully, but these errors were encountered: