
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@applitools/eyes-cypress
Advanced tools
The Cypress SDK allows you to leverage the Applitools Ultrafast Grid to automatically run tests across all major browsers.
For general information about working with Cypress, see Cypress Testing Framework on the Applitools website.
Run the following
npm i --save @applitools/eyes-cypress
or
yarn add @applitools/eyes-cypress
On the project, run the following:
npx eyes-setup
If npx eyes-setup did not run successfully, modify the configuration file as follows:
Add the following to the cypress.config.js file:
const { defineConfig } = require('cypress')
const eyesPlugin = require('@applitools/eyes-cypress')
module.exports = eyesPlugin(defineConfig({
// the e2e or component configuration
e2e: {
setupNodeEvents(on, config) {
}
}
}))
In the pluginsFile file, add the following after the definition of module.exports:
require('@applitools/eyes-cypress')(module)
You can add Eyes-Cypress IntelliSense to your tests using one of the following methods:
The simplest way to see IntelliSense when typing an Eyes-Cypress command is to add a triple-slash directive to the head of your JavaScript or TypeScript testing file. This will turn the IntelliSense on a per file basis:
/// <reference types="@applitools/eyes-cypress" />
tsconfig {#reference}Eyes-Cypress ships with official type declarations for TypeScript. This allows you to add eyes commands to your TypeScript tests. If you do not have TypeScript, for example you use JavaScript, you can add IntelliSense declarations to the project using one of the following:
tsconfig file:{
"compileroptions": {
"types": ["@applitools/eyes-cypress", "cypress", "node"]
}
}
cypress/support folder, create a file index.d.ts that contains:import "@applitools/eyes-cypress"
Normally, this is cypress/plugins/index.js. For details, see the Cypress documentation.
Eyes-Cypress exposes new commands to your tests. This means that additional methods will be available on the cy object.
If npx eyes-setup does not work, you need to configure these custom commands. As with the plugin, there is no automatic way to configure this in Cypress, so you need to manually add the following code to your supportFile:
import '@applitools/eyes-cypress/commands'
To authenticate via the Applitools server and run tests, you need to set the environment variable APPLITOOLS_API_KEY to the API key provided from Applitools Eyes. For details how to retrieve your API key, see the Applitools documentation.
export APPLITOOLS_API_KEY=<API_key>
npx cypress open
set APPLITOOLS_API_KEY=<API_key>
npx cypress open
If the Eyes server is not deployed in https://eyes.applitools.com, you need to set the Server URL in the environment variable APPLITOOLS_SERVER_URL before running tests.
The server URL of your Applitools Eyes dashboard is in the format https://<MY_COMPANY>.applitools.com
export APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>
set APPLITOOLS_SERVER_URL=<YOUR_SERVER_URL>
For further information, see:
FAQs
Unknown package
The npm package @applitools/eyes-cypress receives a total of 59,619 weekly downloads. As such, @applitools/eyes-cypress popularity was classified as popular.
We found that @applitools/eyes-cypress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 50 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.