New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jss-snapshot-serializer

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jss-snapshot-serializer

Jest snapshot serializer for JSS

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
197
decreased by-0.51%
Maintainers
2
Weekly downloads
 
Created
Source

jss-snapshot-serializer

Jest snapshot serializer for JSS

This adds the styles generated by JSS to your snapshots, so you can detect unwanted style changes using snapshots.

Install

npm install --save-dev jss-snapshot-serializer

Usage

To use the serializer globally for all your tests put the following option to your Jest config:

{
  snapshotSerializers: ['jss-snapshot-serializer']
}

Alternatively, you can add the serializer to a specific test file like this:

import jssSerializer from 'jss-snapshot-serializer';
expect.addSnapshotSerializer(jssSerializer);

Keywords

FAQs

Package last updated on 13 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc