jest-serializer-path
Advanced tools
Comparing version 0.0.1 to 0.1.0
'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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98681