Skip to content
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

Merged
merged 4 commits into from
Jan 18, 2019
Merged

Conversation

layershifter
Copy link
Member

This PR breaks partial test runs because uses karma-webpack instead of karma-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.

@codecov-io
Copy link

codecov-io commented Jan 16, 2019

Codecov Report

Merging #3383 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28f81b2...de103a9. Read the comment docs.

@@ -91,12 +91,8 @@ export default (karmaConfig) => {
'test/tests.bundle.js': ['webpack'],
},
webpack: {
...webpackConfig,
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

@levithomason levithomason left a 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 👍

@levithomason
Copy link
Member

Yes, we need a faster runner. Test optimization is needed in this project.

@layershifter layershifter merged commit d363d34 into master Jan 18, 2019
@layershifter layershifter deleted the chore/karma-webpack branch January 18, 2019 13:49
@levithomason
Copy link
Member

Released in [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants