Skip to content

Add code coverage docs when using Jest #295

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

Merged
merged 3 commits into from
Dec 26, 2017
Merged

Add code coverage docs when using Jest #295

merged 3 commits into from
Dec 26, 2017

Conversation

robcresswell
Copy link
Contributor

This patch adds documentation detailing how to set up code coverage when
using vue-test-utils with Jest. Also alters the header values so that sections
aren't all nested under the babel section when using screen readers etc.

Fixes #165

Rob Cresswell and others added 2 commits December 25, 2017 12:36
This patch adds documentation detailing how to set up code coverage when
using vue-test-utils with Jest.

Fixes #165
```

Further documentation can be found in the [Jest configuration documentation](https://facebook.github.io/jest/docs/en/configuration.html#collectcoverage-boolean), where you can find options for coverage thresholds, target output directories, etc.

Copy link
Member

Choose a reason for hiding this comment

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

Can you add a note that mapCoverage should be set to true for coverage to be accurate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@eddyerburgh eddyerburgh merged commit 78672c1 into vuejs:dev Dec 26, 2017
@eddyerburgh
Copy link
Member

Thanks 🙂

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.

2 participants