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

Storybook 7 examples are failing with story code is not instrumented error #25

Closed
wfigueroa-chwy opened this issue Sep 21, 2023 · 6 comments · Fixed by #27
Closed

Storybook 7 examples are failing with story code is not instrumented error #25

wfigueroa-chwy opened this issue Sep 21, 2023 · 6 comments · Fixed by #27
Labels
bug Something isn't working

Comments

@wfigueroa-chwy
Copy link

Describe the bug

Both examples are failing when test-storybook --coverage is run.

Steps to reproduce the behavior

  1. Fresh repo clone and install all dependencies
  2. Go to each example root
  3. yarn storybook to start app
  4. Run yarn test-storybook --coverage on separate terminal
  5. See errors

Expected behavior

Successful test coverage report should appear on terminal.

Screenshots and/or logs

image

Environment

  • OS: macOS Ventura 13.5.2
  • Node.js version: v18.17.0
  • NPM version: v9.6.7

Additional context

Add any other context about the problem here.

@wfigueroa-chwy wfigueroa-chwy added the bug Something isn't working label Sep 21, 2023
@Akash-M
Copy link

Akash-M commented Sep 25, 2023

+1

1 similar comment
@rmsnk
Copy link

rmsnk commented Oct 9, 2023

+1

@shajjhusein
Copy link

shajjhusein commented Oct 11, 2023

@wfigueroa-chwy you need to install @storybook/jest

@dhbloskarv
Copy link

but @storybook/jest is installed

@shajjhusein
Copy link

A new version of Storybook (7.5.0) is now available. You should consider upgrading to address the issue.

@valentinpalkovic
Copy link
Contributor

Fixed by #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
6 participants