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

Exclude Storybook Stories from code coverage #3278

Closed
gperdomor opened this issue Oct 13, 2017 · 3 comments
Closed

Exclude Storybook Stories from code coverage #3278

gperdomor opened this issue Oct 13, 2017 · 3 comments

Comments

@gperdomor
Copy link

How can exclude ___.stories.jsfiles from tests?

This is my component structure:
screen shot 2017-10-13 at 1 02 37 pm

and this is the coverage report:

screen shot 2017-10-13 at 1 03 22 pm

@Timer
Copy link
Contributor

Timer commented Oct 13, 2017

You can tweak your collectCoverageFrom option; see #1830 for reference.

I'd love a PR adding this to the documentation!

@gperdomor
Copy link
Author

@Timer thanks... I solved... I Will leave the issue open for the doc stuff

@mattphillips
Copy link
Contributor

I'm happy to send a PR to document this 😄

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

No branches or pull requests

3 participants