New:Socket for Asana Is Now Available.Learn more
Sign In

@snapvisor/cypress

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snapvisor/cypress

Cypress SDK for visual testing with Snapvisor.

latest
Source
npmnpm
Version
8.0.0
Version published
Weekly downloads
8
-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Argos

The open source visual testing platform for AI-native engineering teams.

Official Argos Cypress integration

npm version npm dm npm dt

Capture stable Argos screenshots from your Cypress tests.

Visit the Cypress SDK documentation for guides, the API reference, and more.

Installation

npm install --save-dev @snapvisor/cypress

Usage

Register the Argos task in your Cypress config:

// cypress.config.js
const { defineConfig } = require("cypress");
const { registerArgosTask } = require("@snapvisor/cypress/task");

module.exports = defineConfig({
  e2e: {
    setupNodeEvents(on, config) {
      registerArgosTask(on, config, {
        // Upload the screenshots to Argos only on CI.
        uploadToArgos: !!process.env.CI,
      });

      return config;
    },
  },
});

Import the command in your support file:

// cypress/support/e2e.js
import "@snapvisor/cypress/support";

Then capture stable screenshots with cy.argosScreenshot in your tests:

// cypress/e2e/example.cy.js
describe("Homepage", () => {
  it("takes a screenshot", () => {
    cy.visit("http://localhost:3000");
    cy.argosScreenshot("homepage");
  });
});

Keywords

cypress

FAQs

Package last updated on 24 Jul 2026

Related posts