Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

metal-jest-serializer

mthadley141MIT2.0.0

A jest snapshot serializer for use with Metal.js

metal, jest, snapshot

readme

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