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

Added remap config options #19

Merged
merged 1 commit into from
Dec 20, 2016
Merged

Added remap config options #19

merged 1 commit into from
Dec 20, 2016

Conversation

oNaiPs
Copy link
Contributor

@oNaiPs oNaiPs commented Aug 5, 2016

No description provided.

@nerumo
Copy link

nerumo commented Aug 25, 2016

will this PR allow to exclude files from coverage?

@oNaiPs
Copy link
Contributor Author

oNaiPs commented Aug 25, 2016

Yes it will.

@erikbarke
Copy link

This would be great to have!

@oNaiPs
Copy link
Contributor Author

oNaiPs commented Dec 1, 2016

Ping @delasteve

@mattlewis92
Copy link
Contributor

@oNaiPs sorry about the late reply on this one, I kind of forgot I offered to help maintain this module until I saw your ping 😞 I've requested one small change then I'm happy to merge + release this 😄

@oNaiPs
Copy link
Contributor Author

oNaiPs commented Dec 5, 2016

@mattlewis92 thanks. I don't see any request?

@@ -18,6 +18,7 @@ Add the plugin, reporter and reporter configuration in your `karma.conf.js`.
plugins: ['karma-remap-istanbul'],
reporters: ['progress', 'karma-remap-istanbul'],
remapIstanbulReporter: {
remapOptions: {} //additional remap options
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't you missing a comma at the end of this line (even though it's just a README)?

@mattlewis92
Copy link
Contributor

@oNaiPs odd, I can't see it on my phone but I can on desktop. Does this link work for you?

@@ -52,7 +53,9 @@ var KarmaRemapIstanbul = function (baseReporterDecorator, logger, config) {
})();

var sourceStore = istanbul.Store.create('memory');
var collector = remap(unmappedCoverage, { sources: sourceStore });
remapOptions.sources = sourceStore;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to use object.assign so that the original remapOptions object isn't modified? Other than that LGTM.

@mattlewis92
Copy link
Contributor

Oops, sorry I'm not used to githubs review feature, I didn't submit the review

@mateusz-j mateusz-j mentioned this pull request Dec 6, 2016
8 tasks
@mattlewis92
Copy link
Contributor

@oNaiPs would it be possible for you to rebase this PR on master so it can be merged?

@oNaiPs
Copy link
Contributor Author

oNaiPs commented Dec 19, 2016

Yes, I'll just make the changes you suggested and will push

@oNaiPs
Copy link
Contributor Author

oNaiPs commented Dec 19, 2016

@mattlewis92 should be ready. Let me know if it works for you.

@mattlewis92 mattlewis92 merged commit 85c29d6 into marcules:master Dec 20, 2016
@mattlewis92
Copy link
Contributor

Perfect, thanks @oNaiPs ! Released as 0.3.0 😃

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

Successfully merging this pull request may close these issues.

5 participants