-
Notifications
You must be signed in to change notification settings - Fork 665
[docs][en] Replace from mapCoverage to collectCoverage in Jest sample. #493
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
Conversation
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.
Thanks 😀
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.
Can you remove collectCoverage
from the config example. We already have it in the following example
@eddyerburgh |
@@ -49,7 +49,7 @@ Next, create a `jest` block in `package.json`: | |||
// process `*.vue` files with `vue-jest` | |||
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest" | |||
}, | |||
"mapCoverage": true | |||
"collectCoverage": true |
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.
Can you remove collectCoverage from here, since the previous example wasn't collecting coverage
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.
@eddyerburgh Oh, OK!
@eddyerburgh fix it. |
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.
Thanks :)
The mapCoverage option is already deprecated.
If you move this sample, an error will be displayed and it will not work.
The error is displayed as "Option 'mapCoverage' has been removed, as it no longer necessary."