Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-serializer-path

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-serializer-path

[![npm version](https://badge.fury.io/js/jest-serializer-path.svg)](https://badge.fury.io/js/jest-serializer-path) [![Build Status](https://travis-ci.org/tribou/jest-serializer-path.svg?branch=master)](https://travis-ci.org/tribou/jest-serializer-path) [!

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16K
increased by4.48%
Maintainers
1
Weekly downloads
 
Created
Source

jest-serializer-path

npm version Build Status Coverage Status Project Status: Active - The project has reached a stable, usable state and is being actively developed. bitHound Code

Remove absolute paths from your Jest snapshots.

Quick Start
npm install --save-dev jest-serializer-path

Add this to your package.json Jest config:

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

Or include only in individual tests:

const serializer = require('jest-serializer-path')

expect.addSnapshotSerializer(serializer)

Keywords

FAQs

Package last updated on 17 Jun 2017

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