These tests use NO CODE | component testing in Storybook

Опубликовано: 19 Октябрь 2024
на канале: Chromatic
10,897
254

Nobody likes writing tests. But what if you could right all your tests just by rendering components in the browser? With Storybook, you can. Learn how to get 100% test coverage with the stories you've already got… Learn with ‪@chantastic‬

▬ Chapters ▬▬▬▬▬▬▬▬▬▬

00:00:00 Get free tests with Storybook
00:00:24 Use Stories as Jest test cases
00:00:48 Install @storybook/test-runner
00:01:21 Add Jest expectations
00:02:31 Add style tests
00:02:55 Add component tests to interactive stories
00:04:02 Learn more about component testing in Storybook…

▬ Links and resources ▬▬▬▬▬▬▬▬▬▬

Storybook Test Runner: https://storybook.js.org/addons/@stor...
Storybook play functions: https://storybook.js.org/docs/react/w...
Storybook interaction tests: https://storybook.js.org/docs/react/w...

▬ Follow us! ▬▬▬▬▬▬▬▬▬▬

Discord:   / discord  
Twitter:   / storybookjs  
GitHub: https://github.com/storybookjs/storybook

Follow ‪@chantastic‬ on:
twitter:   / chantastic  
youtube: ‪@chantastic‬

▬ Learn more ▬▬▬▬▬▬▬▬▬▬

Storybook at https://learnstorybook.com/
Storybook addons at https://storybook.js.org/addons
Component driven UI development at https://www.componentdriven.org/

▬ Free Storybook hosting ▬▬▬▬▬▬▬▬▬▬

Chromatic is made by Storybook maintainers and sets up in just 2 minutes.

Claim free Storybook hosting at https://www.chromatic.com/!