These tests use NO CODE | component testing in Storybook

  Рет қаралды 11,938

Chromatic

Chromatic

Күн бұрын

Пікірлер: 21
@asilurian
@asilurian 2 жыл бұрын
This. Changes. Everything! :D Really excited to use this
@chantastic
@chantastic 2 жыл бұрын
heck yeah! me too :)
@gokhankoc3507
@gokhankoc3507 2 жыл бұрын
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?
@chantastic
@chantastic 2 жыл бұрын
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
@chantastic
@chantastic 2 жыл бұрын
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
@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?
@dominicnguyen5465
@dominicnguyen5465 2 жыл бұрын
Haha "Stabbing your components with a blindfold on" ❤
@SithLordBishop
@SithLordBishop Жыл бұрын
does this work with vitest?
@chromaticui
@chromaticui Жыл бұрын
sadly no
@jamesgarcia1538
@jamesgarcia1538 2 жыл бұрын
This is amazing! Thanks for sharing :)
@chantastic
@chantastic 2 жыл бұрын
Thanks for the encouragement James!
@kabburebh
@kabburebh Жыл бұрын
These tests can show the coverage in sonar as well?
@chromaticui
@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
@xennialmusic
@xennialmusic 2 жыл бұрын
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
@chromaticui 2 жыл бұрын
discord.com/channels/486522875931656193/691505730125168682
@justingiovanetti
@justingiovanetti 7 ай бұрын
“With no test code”? You showed the test code.
@sebastianthomas1901
@sebastianthomas1901 9 ай бұрын
"Get free tests with just two lines!". Proceeds to write tests. So sick of these hype men talking nonsense and selling lies
@Thr0nSK
@Thr0nSK Жыл бұрын
Any idea why I'm getting a type error `TS2339: Property 'toHaveStyle' does not exist on type 'JestMatchers '.` with the `toHaveStyle` method?
@chromaticui
@chromaticui Жыл бұрын
stackoverflow.com/questions/38324949/error-ts2339-property-x-does-not-exist-on-type-y
@Thr0nSK
@Thr0nSK Жыл бұрын
@@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.
@eduardoalvarez4457
@eduardoalvarez4457 9 ай бұрын
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.
Next.js with React Testing Library, Jest, TypeScript
25:04
Dave Gray
Рет қаралды 76 М.
Component testing in Storybook with play functions
6:56
Chromatic
Рет қаралды 22 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 61 М.
Test components the EASY way | Component Story Format 3
7:26
Chromatic
Рет қаралды 14 М.
React UI Library Structure, Storybook and Tests
22:50
Jack Herrington
Рет қаралды 51 М.
Storybook can do.... WHAT???
9:08
Nx - Smart Monorepos - Fast CI
Рет қаралды 10 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
React Testing Tutorial - 14 - Code Coverage
11:39
Codevolution
Рет қаралды 59 М.
How to Test UI AUTOMATICALLY - Storybook and Chromatic
10:54
Chromatic
Рет қаралды 25 М.