metal-jest-serializer

2.0.0 • Public • Published

metal-jest-serializer

Build Status

A Jest snapshot serializer for use with Metal.js.

Setup

Just add the following to your Jest configuration in your package.json:

"jest"{
  "snapshotSerializers": [
    "metal-jest-serializer"
  ]
}

Now you can start writing snapshot tests!

describe('MyComponent', () => {
  test('should render', () => {
    const myComponent = new MyComponent();
 
    expect(myComponent).toMatchSnapshot();
  });
});

Readme

Keywords

Package Sidebar

Install

npm i metal-jest-serializer

Weekly Downloads

228

Version

2.0.0

License

MIT

Last publish

Collaborators

  • rframpton
  • mthadley