jest-snapshot
Advanced tools
Comparing version 12.1.2-alpha.a482b15c to 12.1.3-alpha.6230044c
@@ -44,2 +44,7 @@ /** | ||
// Extra line breaks at the beginning and at the end of the snapshot are useful | ||
// to make the content of the snapshot easier to read | ||
const addExtraLineBreaks = string => string.indexOf('\n') > -1 ? | ||
`\n${ string }\n` : string; | ||
const fileExists = filePath => { | ||
@@ -91,4 +96,4 @@ try { | ||
serialize(data) { | ||
return prettyFormat(data, { | ||
plugins: [jsxLikeExtension] });} | ||
return addExtraLineBreaks(prettyFormat(data, { | ||
plugins: [jsxLikeExtension] }));} | ||
@@ -95,0 +100,0 @@ |
{ | ||
"name": "jest-snapshot", | ||
"version": "12.1.2-alpha.a482b15c", | ||
"version": "12.1.3-alpha.6230044c", | ||
"repository": { | ||
@@ -11,3 +11,3 @@ "type": "git", | ||
"dependencies": { | ||
"jest-util": "^12.1.2-alpha.a482b15c", | ||
"jest-util": "^12.1.3-alpha.6230044c", | ||
"pretty-format": "^3.3.0" | ||
@@ -14,0 +14,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
9170
241
+ Addedjest-mock@12.1.3-alpha.6230044c(transitive)
+ Addedjest-util@12.1.3-alpha.6230044c(transitive)
- Removedjest-mock@12.1.2-alpha.a482b15c(transitive)
- Removedjest-util@12.1.2-alpha.a482b15c(transitive)