Cypress Quickstart
Learn how to setup visual testing using the Argos Cypress SDK.
Prerequisites
1
2
3
Register Argos in Cypress config
const { defineConfig } = require("cypress");
const { registerArgosTask } = require("@argos-ci/cypress/task");
module.exports = defineConfig({
// setupNodeEvents can also be defined in "component"
e2e: {
async setupNodeEvents(on, config) {
registerArgosTask(on, config, {
// Enable upload to Argos only when it runs on CI.
uploadToArgos: !!process.env.CI,
// Set your Argos token (required only if you don't use GitHub Actions).
token: "<YOUR-ARGOS-TOKEN>",
});
// include any other plugin code...
},
},
});Congratulations on installing Argos! 👏
Additional resources
Last updated
Was this helpful?