-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
chore(package): update karma and webpack #3383
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3383 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 170 170
Lines 2809 2809
=======================================
Hits 2806 2806
Misses 3 3 Continue to review full report at Codecov.
|
@@ -91,12 +91,8 @@ export default (karmaConfig) => { | |||
'test/tests.bundle.js': ['webpack'], | |||
}, | |||
webpack: { | |||
...webpackConfig, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now spreading keys that aren't applicable to karma's webpack config (name
, mode
, target
, output
, etc). I think we should stick with explicitly passing only the keys we want as it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now we have only webpack.config.karma.js
, so I cleaned up it more and removed name
, output
, target
from there.
mode
is required setting for Webpack 4, otherwise it will run in production mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge after reviewing comments 👍
Yes, we need a faster runner. Test optimization is needed in this project. |
Released in |
This PR breaks partial test runs because uses
karma-webpack
instead ofkarma-webpack-with-fast-source-maps
. However,karma-webpack-with-fast-source-maps
is outdated and doesn't support Webpack 4.We should switch to Jest if they will improve the performance in Jest 24/25.