jest-image-snapshot
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "jest-image-snapshot", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Jest matcher for screenshot comparisons. Most commonly used for browser visual testing.", | ||
"main": "src/index.js", | ||
"engines": { "node": ">=6.0.0" }, | ||
"scripts": { | ||
@@ -29,3 +30,3 @@ "lint": "eslint ./ --ignore-path .gitignore --ext .js", | ||
"devDependencies": { | ||
"amex-jest-preset": "^3.1.0", | ||
"amex-jest-preset": "^4.0.2", | ||
"eslint": "^3.19.0", | ||
@@ -42,4 +43,4 @@ "eslint-config-amex": "^6.0.0", | ||
"peerDependencies": { | ||
"jest": "^20.0.0" | ||
"jest": "^20.0.0 || ^21.0.0" | ||
} | ||
} |
@@ -48,2 +48,4 @@ # jest-image-snapshot | ||
By default, we have set [these values](https://github.com/americanexpress/jest-image-snapshot/blob/master/src/diff-snapshot.js#L55) for `thresholdType` and `threshold`. | ||
## How it works | ||
@@ -50,0 +52,0 @@ Given an image (should be either a PNGImage instance or a Buffer instance with PNG data) the `toMatchImageSnapshot()` matcher will create a `__image_snapshots__` directory in the directory the test is in and will store the baseline snapshot image there on the first run. |
@@ -54,3 +54,3 @@ /* | ||
const message = 'Expected image to match or be a close match to snapshot.\n' | ||
const message = () => 'Expected image to match or be a close match to snapshot.\n' | ||
+ `${chalk.bold.red('See diff for details:')} ${chalk.red(result.diffOutputPath)}`; | ||
@@ -57,0 +57,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
702822
17
101