The open source visual testing platform for AI-native engineering teams.
Node.js SDK for visual testing with Argos. It powers the Argos CLI and the higher-level integrations (Playwright, Cypress, …), and can be used directly to upload screenshots from Node.js.
Visit the Node.js SDK documentation for guides, the API reference, and more.
npm install @argos-ci/core
Upload a directory of screenshots to Argos and create a build:
import { upload } from "@argos-ci/core";
const { build } = await upload({
// Directory containing the screenshots.
root: "./screenshots",
// Globs matching the screenshots to upload.
files: ["**/*.png"],
// Defaults to the ARGOS_TOKEN environment variable.
token: process.env.ARGOS_TOKEN,
});
console.log(`Build created: ${build.url}`);