Skip to content

p-mazhnik/react-testing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Testing Example



jest storybook
Test React Apps as a Pro. Part 1

Source code of Medium Articles which describes how to apply component driven and test driven development approaches in React + Redux apps to achieve flexible architecture and 100% code coverage:

Main Libraries Used 🛠

Project structure 🧱

Available Scripts 👨‍💻

In the project directory, you can run:

yarn run storybook

Runs storybook.

yarn test

Launches the test runner.

yarn run test:coverage

Launches the test runner and generates coverage report.

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

Learn More 📖

To learn Storybook, check out the Storybook documentation.
To learn React, check out the React documentation.