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

cypress-match-screenshot

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-match-screenshot - npm Package Compare versions

Comparing version 0.0.3-rc.1 to 0.0.3-rc.2

2

package.json
{
"name": "cypress-match-screenshot",
"version": "0.0.3-rc.1",
"version": "0.0.3-rc.2",
"description": "Utility to take screenshots during a cypress test and match them against previous runs",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -1,2 +0,2 @@

const CYPRESS_SCREENSHOT_FOLDER = 'cypress/screenshots'
const CYPRESS_SCREENSHOT_FOLDER = 'cypress/screenshots';

@@ -71,7 +71,11 @@ /**

// in it or not
cy.exec(`touch "${CYPRESS_SCREENSHOT_FOLDER}/${fileName}.png"`, { log: false });
cy.exec(`touch "${CYPRESS_SCREENSHOT_FOLDER}/${fileName}.png"`, {
log: false
});
takeScreenshot(`new/${fileName}`);
cy
.readFile(`${CYPRESS_SCREENSHOT_FOLDER}/${fileName}.png`, 'utf-8', { log: false })
.readFile(`${CYPRESS_SCREENSHOT_FOLDER}/${fileName}.png`, 'utf-8', {
log: false
})
.then((value) => {

@@ -117,4 +121,4 @@ if (value) {

module.exports {
module.exports = {
register
}
};
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