-
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
Setup coverage #245
Setup coverage #245
Conversation
] | ||
], | ||
"env": { | ||
"development": { |
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.
Moved all babel config into babelrc
. The development
section was previously in the loader query.
1290666
to
3cdacd3
Compare
@@ -45,7 +53,7 @@ module.exports = (karmaConfig) => { | |||
], | |||
}, | |||
plugins: [ | |||
new webpack.DefinePlugin(config.compiler_globals), | |||
...webpackConfig.plugins, |
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.
Plugins are conditionally set in webpack config, use all available plugins.
3cdacd3
to
f7dc0b6
Compare
@@ -51,6 +51,7 @@ | |||
"babel-core": "^6.5.2", | |||
"babel-eslint": "^6.0.4", | |||
"babel-loader": "^6.2.0", | |||
"babel-plugin-__coverage__": "^0.111111.11", |
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.
Lol, is that version for real?
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.
Yea, I wish this said "babel-plugin-coverage": "^0.1.1"
. Some other folks are pushing for a "normal" 1.0 release as well on this issue.
👻 |
This PR sets up coverage reporting and fixes some test issues.
npm test
HTML Coverage Report