New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

testcafe-blink-diff

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe-blink-diff - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

bin/cli.js

4

lib/index.js
const path = require('path');
const fs = require('fs');
const isFullPage = process.argv.slice(2).indexOf('--full-page');
const isTakeSnapshot = process.argv.slice(2).indexOf('--take-snapshot');
const isFullPage = process.env.FULL_PAGE || process.argv.slice(2).indexOf('--full-page');
const isTakeSnapshot = process.env.TAKE_SNAPSHOT || process.argv.slice(2).indexOf('--take-snapshot');
const snapshotName = isTakeSnapshot > -1 ? process.argv.slice(2)[isTakeSnapshot + 1] : null;

@@ -7,0 +7,0 @@

{
"name": "testcafe-blink-diff",
"version": "0.3.7",
"version": "0.3.8",
"description": "Visual regression for Testcafé through BlinkDiff",
"main": "lib/index.js",
"bin": {
"testcafe-blink-diff": "bin/cli"
"testcafe-blink-diff": "./bin/cli.js"
},

@@ -25,12 +25,12 @@ "files": [

"glob": "^7.1.2",
"open": "0.0.5",
"open": "^6.4.0",
"wargs": "^0.8.1"
},
"devDependencies": {
"bili": "^3.1.2",
"eslint": "^5.3.0",
"eslint-config-airbnb-base": "^13.1.0",
"bili": "^4.2.5",
"eslint": "^6.4.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.14.0",
"somedom": "0.0.7"
"somedom": "^0.1.3"
}
}

@@ -47,1 +47,15 @@ [![NPM version](https://badge.fury.io/js/testcafe-blink-diff.png)](http://badge.fury.io/js/testcafe-blink-diff)

</p>
## API Options
`takeSnapshot(t[, label[, options]])`
- `label|options.label` &mdash; Readable name for the taken snapshot
- `options.as` &mdash; Valid identifier for later comparison
- `options.timeout` &mdash; Waiting time before taking snapshots
- `options.selector` &mdash; String, or `Selector()` to match on the DOM
- `options.blockOut` &mdash; List of `Selector()` nodes to "block-out" on the snapshot
> "Block-out" means matched DOM nodes are covered by a solid-color overlay, helping to reduce unwanted differences if they change often, e.g. ads
Type `npx testcafe-blink-diff --help` to list all available options.
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