To create this project I used webpack, storybooks and Jest . You can download or clone this repository. I create a component with test and storybook to have an example.
.
├── config
│ └── ImageStub.js
├── index.js
├── package.json
├── src
│ ├── App.js
│ ├── components
│ │ └── box
│ │ ├── __snapshots__
│ │ │ └── box.spec.js.snap
│ │ ├── box.css.js
│ │ ├── box.spec.js
│ │ ├── box.story.js
│ │ └── index.js
│ ├── css
│ │ └── reset.css.js
│ ├── html
│ │ └── template.html
│ ├── images
│ │ ├── favicon.ico
│ │ └── watermelon-shark.jpg
│ └── index.js
├── webpack
│ ├── webpack.config.js
│ ├── webpack.dev.js
│ └── webpack.prod.js
└── yarn.lock
- React;
- Storybook
- Jest.
- Jest, (back-end e front-end)
- Storybook - Viewing Components
$ yarn
ou$ npm i
$ yarn start
or $ npm start
- This command to access project in http://localhost:7000
$ yarn test
or $ npm test
$ yarn storybook
or $ npm run storybook
- This command to access storybook in http://localhost:6000/