enzyme-styleguidist-sample-parser

0.1.12 • Public • Published

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() }
    }
  }
};

Dependents (0)

Package Sidebar

Install

npm i enzyme-styleguidist-sample-parser

Weekly Downloads

0

Version

0.1.12

License

MIT

Last publish

Collaborators

  • gregor71