generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[Bug]: The code in this story is not instrumented on excluded stories #23
Labels
bug
Something isn't working
Comments
Is there anyone still alive here |
Old, but the way I got around this was to use I agree it sucks though, it should still run the tests with a possible warning |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I have some stories I want to exclude from coverage.
So I have this config:
When running
test-storybook --coverage
,those stories failed with:
[Test runner] An error occurred when evaluating code coverage: The code in this story is not instrumented, which means the coverage setup is likely not correct. More info: https://github.com/storybookjs/test-runner#setting-up-code-coverage
Steps to reproduce the behavior
https://github.com/cyberuni/storybook-coverage-instrument-issue
pnpm i pnpm storybook pnpm test-storybook --coverage # another terminal
Expected behavior
Those stories should be excluded from the coverage and should not fail.
Screenshots and/or logs
Environment
Additional context
The text was updated successfully, but these errors were encountered: