jest-snapshot
Advanced tools
Comparing version 15.0.1 to 15.1.0
@@ -12,9 +12,12 @@ /** | ||
const ReactElementPlugin = require('pretty-format/plugins/ReactElement'); | ||
const ReactTestComponentPlugin = require('pretty-format/plugins/ReactTestComponent'); | ||
const createDirectory = require('jest-util').createDirectory; | ||
const fileExists = require('jest-file-exists'); | ||
const fs = require('fs'); | ||
const jsxLikeExtension = require('pretty-format/plugins/ReactTestComponent'); | ||
const path = require('path'); | ||
const prettyFormat = require('pretty-format'); | ||
const jsxLikePlugins = [ReactElementPlugin, ReactTestComponentPlugin]; | ||
const SNAPSHOT_EXTENSION = 'snap'; | ||
@@ -94,3 +97,3 @@ | ||
return addExtraLineBreaks(prettyFormat(data, { | ||
plugins: [jsxLikeExtension] })); | ||
plugins: jsxLikePlugins })); | ||
@@ -97,0 +100,0 @@ } |
{ | ||
"name": "jest-snapshot", | ||
"version": "15.0.1", | ||
"version": "15.1.0", | ||
"repository": { | ||
@@ -11,6 +11,6 @@ "type": "git", | ||
"dependencies": { | ||
"jest-diff": "^15.0.1", | ||
"jest-diff": "^15.1.0", | ||
"jest-file-exists": "^15.0.0", | ||
"jest-util": "^15.0.1", | ||
"pretty-format": "^3.6.0" | ||
"jest-util": "^15.1.0", | ||
"pretty-format": "^3.7.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
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
9555
291
Updatedjest-diff@^15.1.0
Updatedjest-util@^15.1.0
Updatedpretty-format@^3.7.0