snapped

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i snapped

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • remarkablemark