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

Jest Addon Style #6805

Closed
NickSofology opened this issue May 17, 2019 · 2 comments
Closed

Jest Addon Style #6805

NickSofology opened this issue May 17, 2019 · 2 comments
Assignees

Comments

@NickSofology
Copy link

NickSofology commented May 17, 2019

So basically I can't view the percentage value of my tests across the bar in the top of the addon panel for Jest.

Below is how I am enabling these tests to display on my stories.

.addParameters({
    readme: {
      content: AccordionIntro,
      sidebar: AccordionReadme,
    },
    jest: ['Accordion-test', 'AccordionItem-test'],
  })

I also have this in my config.js file.

addDecorator(
  withTests({
    results,
  })
);

It's all pretty standard as per instructions.

Expected behavior
I expect to be able to view the percentage value in the bar.

Screenshots
Screenshot 2019-05-17 at 09 43 13

As you can see from the above screenshot there is something there. I go into dev tools and I can increase the height to see what I need to see, so I know that what I am seeing is clearly not intended.

System:

  • OS: OSX 10.14.4
  • Device: iMac
  • Browser: Chrome 73.0.3683.86
  • Framework: React
  • Addons: Jest
  • Version: 5.0.11
@CodeByAlex
Copy link
Member

CodeByAlex commented May 21, 2019

@NickSofology I'm on it! Thanks for opening the issue.

@shilman
Copy link
Member

shilman commented Jun 4, 2019

Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.1.0-rc.5 containing PR #6847 that references this issue. Upgrade today to try it out!

Because it's a pre-release you can find it on the @next NPM tag.

Closing this issue. Please re-open if you think there's still more to do.

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

No branches or pull requests

3 participants