pubudu-test-package-2
v1.16.2
Published
[](https://circleci.com/gh/hipagesgroup/hui) [.
The complete test setup is inspired by the create-react-app configs. See their docs for more details.
Structure: file and story
as we discussed (4/dec/2018)
presentational (pure styled components)
- atoms
- molecules
- organisms
container ( styled components with plugins/functions )
- molecules
- organismsStories
We are actively attempting to move components and stories into the /packages directory and will be using Atomic Design as a means of categorising our components.
Tests must be exist in a relative __stories__ directory, similar to __tests__, where the filename should be in the format {component}.stories.js.
We have a few global stories, which make it easier to add new stories:
- atoms
- molecules
- theme
Adding a new story
// Add `module` in to enable hot module reloading
storiesOf('Presentational.Molecules.Form', module).addWithJSX('Form', () => {Knobs
We are using Knobs in order to dynamically control the state of our components in the storybook. Try to implement them in your stories as much as possible.
Release
- use
feat:orfix:in PR title, others will not trigger release - you will need at least one
feat:orfix:commit
