Рет қаралды 9,919
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: storybook.js.org/addons/@stor...
- Storybook play functions: storybook.js.org/docs/react/w...
- Storybook interaction tests: storybook.js.org/docs/react/w...
▬ Follow us! ▬▬▬▬▬▬▬▬▬▬
Discord: / discord
Twitter: / storybookjs
GitHub: github.com/storybookjs/storybook
Follow @chantastic on:
- twitter: / chantastic
- youtube: @chantastic
▬ Learn more ▬▬▬▬▬▬▬▬▬▬
- Storybook at learnstorybook.com/
- Storybook addons at storybook.js.org/addons
- Component driven UI development at www.componentdriven.org/
▬ Free Storybook hosting ▬▬▬▬▬▬▬▬▬▬
Chromatic is made by Storybook maintainers and sets up in just 2 minutes.
Claim free Storybook hosting at www.chromatic.com/!