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.
.
├── App.js
├── components
│ └── box
│ ├── __snapshots__
│ │ └── box.spec.js.snap
│ ├── box.spec.js
│ ├── box.story.js
│ └── index.js
├── css
│ ├── _reset.scss
├── html
│ └── template.html
├── images
│ └── favicon.ico
└── index.js
- 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:2000
$ yarn test
or $ npm test
$ yarn storybook
or $ npm run storybook
- This command to access storybook in http://localhost:6006/