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.0.1 to 0.1.0

4

lib/index.js
'use strict'
// Replace absolute file paths with mocked
// Replace absolute file paths with <PROJECT_ROOT>
const dirname = __dirname.replace(/node_modules\/jest-serializer-path$/, '')
const dirname = __dirname.substring(0, __dirname.indexOf('/node_modules/') + 1)

@@ -7,0 +7,0 @@ module.exports = {

{
"name": "jest-serializer-path",
"version": "0.0.1",
"version": "0.1.0",
"description": "",

@@ -45,6 +45,7 @@ "author": "tribou",

"cover": "npm test -- -s -r lcov | coveralls",
"lint": "eslint --cache --ignore-path .gitignore .",
"test": "lab -c -L -v -a code -t 100 -P '_test' lib",
"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"
}
}

@@ -9,7 +9,7 @@ # jest-serializer-path

Remove absolute filepaths out of your Jest snapshots.
Remove absolute paths from your Jest snapshots.
#### Quick Start
```
```bash
npm install --save-dev jest-serializer-path

@@ -25,3 +25,3 @@ ```

]
},
}
```

@@ -31,3 +31,3 @@

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

@@ -34,0 +34,0 @@

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