This. Changes. Everything! :D Really excited to use this
@chantastic2 жыл бұрын
heck yeah! me too :)
@gokhankoc35072 жыл бұрын
I have been using interactions for a while at work and love them. Now I believe there needs to be further documentation for testing strategies, patterns and examples. For example, to be able to test actions (they will be automatically jest.fn() mocks), they need to be defined in argTypes. It took hours for me to figure that out. Is there any way I can contribute?
@chantastic2 жыл бұрын
have you had a chance to look at the test-runner documentation? there are a number of recipes there. a number of our posts and videos are just resurfacing the documentation there github.com/storybookjs/test-runner#setting-up-code-coverage
@chantastic2 жыл бұрын
and yeah! we're always open to contributions. the test-runner docs (linked in the other comment) are the best place to make contributions. this particular package is under a lot of active development
@xardass4209Күн бұрын
When run test runner in cli, storybook 8.5.3 I got message: An error occurred in the following story, most likely because of a navigation. I noticed this when there is more than one story in stories.ts/tsx file. Is there any solution or setting for this case?
@dominicnguyen54652 жыл бұрын
Haha "Stabbing your components with a blindfold on" ❤
@SithLordBishop Жыл бұрын
does this work with vitest?
@chromaticui Жыл бұрын
sadly no
@jamesgarcia15382 жыл бұрын
This is amazing! Thanks for sharing :)
@chantastic2 жыл бұрын
Thanks for the encouragement James!
@kabburebh Жыл бұрын
These tests can show the coverage in sonar as well?
@chromaticui Жыл бұрын
We have a doc that covers integration with Istanbul. None for sonar yet. But the Istanbul docs may provide some general guidance storybook.js.org/docs/react/writing-tests/test-coverage
@xennialmusic2 жыл бұрын
I'm in the Storybook Discord channel and I can't find the testing channel you speak of at the end of the video.
@@chromaticui Sorry but I'm not sure how this helps. I shouldn't need to extend the type, should I? I saw that other people had problems with this as well and solved it by adding @types/testing-library__jest-dom but it doesn't seem to help in my case.
@eduardoalvarez44579 ай бұрын
In case someone just came from the documentation using TypeScript and get errors everywhere, remember to rename your story from component.stories.ts to component.stories.tsx (notice the x at the end) as the decorator is JSX and its required for the TypeScript compiler to be valid.