Skip to content

metal/metal-jest-serializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A jest snapshot serializer for Metal.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published