0.0.1 • Published 8 years ago

snapped v0.0.1

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

snapped

NPM

NPM version Build Status Coverage Status

Snapshot generator for React UI. Inspired by Jest snapshot testing.

Install

$ npm install snapped

Usage

import generateSnapshot from 'snapped';
const reactElement = (
  <div className='class'>
    Hello, world!
  </div>
);
console.log(
  generateSnapshot(reactElement)
);

Output:

<div
  className="class"
>
  Hello, world!
</div>

Testing

$ npm test
$ npm run lint

License

MIT