question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jest Results not showing in HTML example

See original GitHub issue

Hi,

I’m trying to get a working example of the @storybook/addon-jest working within the HTML example. The JSON results file exists in the file directory but the addon doesn’t appear to ever find it.

You can see a live example of this in storybooks own demo for the HTML Kitchen sink

image

https://storybookjs.netlify.app/html-kitchen-sink/?path=/story/addons-jest--with-tests

Has anyone gotten this feature to work in the HTML framework?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
FacePalmDevcommented, Jul 30, 2022

Thanks! I was messaging from my phone last night, back on my machine now so I’ll take a look.

I want to thank you for replying so quickly. I hadn’t expected you to come back to me so fast!

0reactions
yannbfcommented, Jul 29, 2022

Where does WithTests.story go? in what file? Could you give a little more context?

I’m not sure I understand your question, but if it’s because you want to know how to use the addon, you can check this link: https://github.com/storybookjs/storybook/tree/main/addons/jest

Hey, I just want to know the name of the file where the code above goes?!

I’d like to also see a fuller example.

I just want to know where to put the code? What file?

That file would be the stories file of your component. Please read the documentation I sent, that will cover everything you need.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Jest
Troubleshooting. Uh oh, something went wrong? Use this guide to resolve issues with Jest. Tests are Failing and You Don't Know Why​.
Read more >
javascript - Jest - No output of test results - Stack Overflow
No tests I try to run and with what options I try to pass Jest, I never get the 'Pass' / 'Fail' output...
Read more >
jest-html-reporter - npm
Jest test results processor for generating a summary in HTML. ... Start using jest-html-reporter in your project by running `npm i ...
Read more >
jest-stare | Jest HTML Reporter and Results Processor
This is a Jest HTML reporter. It takes summary test results from jest and parses them into an HTML file for improved readability...
Read more >
Jest Tutorial - JavaScript Unit Testing Using Jest Framework
There are libraries/modules available to generate HTML based test reports for Jest tests. It can be achieved as shown below. Add node package ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found