Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-image-snapshot

Package Overview
Dependencies
Maintainers
4
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-image-snapshot - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.travis.yml

7

package.json
{
"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 @@

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