0.1.12 • Published 6 years ago

enzyme-styleguidist-sample-parser v0.1.12

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

enzyme-styleguidist-sample-parser

Write generic React component samples - run jest/enzyme tests and generate react-syleguidist examples

Example Usage:

/samples/MyComponent.js

const containerStyle = {
  component: MyComponent,
  props: { style: { backgroundColor: "#071" } },
  enzyme: {
    tests: {
      shallow: { snapshot: snapShot() }
    }
  }
};