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 Package Compare versions

Comparing version 0.1.4 to 0.1.5

lib/__snapshots__/index_test.js.snap

2

lib/index.js

@@ -6,2 +6,4 @@ 'use strict'

const dirname = __dirname.substring(0, __dirname.indexOf('/node_modules/'))
// Support self-testing
|| __dirname

@@ -8,0 +10,0 @@ module.exports = {

46

package.json
{
"name": "jest-serializer-path",
"version": "0.1.4",
"description": "",
"version": "0.1.5",
"description": "Remove absolute paths from your Jest snapshots",
"author": "tribou",

@@ -12,2 +12,7 @@ "license": "Apache-2.0",

},
"config": {
"yarn": {
"version": "1.3.2"
}
},
"homepage": "https://github.com/tribou/jest-serializer-path#readme",

@@ -25,21 +30,34 @@ "repository": {

],
"files": [
"lib/",
"yarn.lock"
],
"devDependencies": {
"babel-eslint": "^7.2.3",
"code": "^4.1.0",
"coveralls": "^2.13.1",
"babel-eslint": "^8.0.2",
"coveralls": "^3.0.0",
"cross-env": "^5.1.1",
"eslint": "^3.16.0",
"eslint-plugin-flowtype": "^2.34.0",
"eslint-plugin-tribou": "^1.0.5",
"lab": "^14.1.0",
"nodemon": "^1.11.0"
"jest": "^21.2.1",
"jest-junit": "^3.3.0"
},
"dependencies": {},
"jest": {
"collectCoverage": true,
"verbose": true,
"testRegex": "/(lib)/.*_test\\.js$",
"testResultsProcessor": "jest-junit",
"snapshotSerializers": [
"./"
]
},
"scripts": {
"deploy": "",
"cover": "npm test -- -s -r lcov | coveralls",
"lab": "lab -c -L -v -a code -t 100 -P '_test' lib",
"lint": "eslint --ignore-path .gitignore .",
"test": "npm run lint",
"watch": "nodemon -x npm test"
"coverage": "coveralls < coverage/lcov.info",
"lint": "eslint --ignore-path .gitignore lib",
"test-jest": "cross-env NODE_ENV=test jest",
"test": "npm run --silent lint && npm run --silent test-jest",
"watch": "npm run test-jest -- --watch",
"yarn": "npm run --silent yarn-bin -- install --prefer-offline",
"yarn-bin": "node bin/yarn-${npm_package_config_yarn_version}.js"
}
}
# 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)
[![CircleCI](https://circleci.com/gh/tribou/jest-serializer-path.svg?style=svg)](https://circleci.com/gh/tribou/jest-serializer-path)
[![Coverage Status](https://coveralls.io/repos/github/tribou/jest-serializer-path/badge.svg?branch=master)](https://coveralls.io/github/tribou/jest-serializer-path?branch=master)

@@ -34,1 +34,20 @@ [![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active)

```
All absolute paths will now be converted and saved in snapshots like so:
`/path/to/my-proj/lib` => `<PROJECT_ROOT>/lib`
#### Build
This project bundles the yarn executable and the npm/yarn dependencies offline
in the `.npm-packages-offline-cache` directory for faster dependency installs
and better dev/prod parity across including preventing failure if yarn/npm is
offline.
```sh
# Install
npm run yarn
# Run tests
npm run test
```

Sorry, the diff of this file is not supported yet

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