Jimmydalecleveland / storybook-tests-react

A sample repo for creating React tests from Storybook stories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storybook stories as tests in React

This repo contains the code used in a tutorial video. Click the image below or this link for the youtube video

Testing with Stories graphic

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn storybook

Runs Storybook and opens it in the browser. Useful to see the components in action!

The page will reload if you make edits.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn test:coverage

Shows the test coverage of files. Additional configuration has been added to the package.json under the jest property. This was shown during the video.

About

A sample repo for creating React tests from Storybook stories.


Languages

Language:JavaScript 62.5%Language:CSS 21.8%Language:HTML 15.6%