-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Could I place exclude
in .nycrc instead of package.json?
#419
Comments
Is this still an issue? The project is here: https://github.com/rapzo/test-nyc There are two tags: Am i missing something here? |
@rapzo After I upgrade to version 8.4.0, the issue seems......to remain. I'm using .babelrc: {
"presets": ["es2015", "stage-3", "react"],
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
} .nycrc {
"exclude": [
"src/test/**/*.spec.js"
],
"reporter": [
"text",
"html"
],
"require": [
"babel-register"
],
"sourceMap": false,
"instrument": false
} And I test codes in this way:
|
Thanks for that info @BurningLutz it really cleared the issue here. Although, from a quick look at the code it looks like an issue in Meanwhile i'll try to write a patch to support |
@rapzo @BurningLutz an oversight not a design decision; I would happily accept a patch adding |
Nice! As i see it, do you have any preference on the parsing order? 1st .nycrc or On Wed, Nov 16, 2016 at 4:25 PM, Benjamin E. Coe notifications@github.com
Rui Pedro Lima |
@rapzo let's just make sure that nyc and babel-plugin-istanbul are consistent; nyc currently uses yargs' config/pkg-config functionality to do its thing: https://github.com/istanbuljs/nyc/blob/master/lib/config-util.js#L14 We should probably do the same; there's been some discussion on yargs to change the order of application; And there might be some changes over the coming months, so best that we lean on yargs in my opinion, and let that project determine the most logical order of operation. |
Great! Thanks! Will do my best. On Wed, Nov 16, 2016 at 5:23 PM, Benjamin E. Coe notifications@github.com
Rui Pedro Lima |
@BurningLutz @rapzo could you give this a try:
The bug should be fixed thanks to @alpersogukpinar's hard work. |
Uuuuuh interesting!
Will try it out today!
…On Tue, Feb 7, 2017 at 5:08 AM, Benjamin E. Coe ***@***.***> wrote:
@BurningLutz <https://github.com/BurningLutz> @rapzo
<https://github.com/rapzo> could you give this a try:
npm cache clear; npm i ***@***.***
The bug should be fixed thanks to @alpersogukpinar
<https://github.com/alpersogukpinar>'s hard work.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#419 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAJBTAtCUUq-TGjiz5pTIzgpmg6EJfSfks5rZ_w8gaJpZM4Kaxr1>
.
--
Rui Pedro Lima
|
Since the related issue istanbuljs/babel-plugin-istanbul#62 has been solved recently, I'm closing this now. |
@BurningLutz awesome 👍 |
Currently, setting
exclude
in .nycrc takes no effect but setting it in package.json did.My nyc version is: 8.3.1
The text was updated successfully, but these errors were encountered: