@argos-ci/cypress
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@argos-ci/cypress", | ||
"description": "Visual testing solution to avoid visual regression. Cypress commands and utilities for Argos visual testing.", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"author": "Smooth Code", | ||
@@ -22,7 +22,5 @@ "license": "MIT", | ||
"type": "module", | ||
"main": "./support.js", | ||
"types": "./support.d.ts", | ||
"exports": { | ||
"./support": { | ||
"require": "./support.js", | ||
"import": "./support.js", | ||
"types": "./support.d.ts", | ||
@@ -36,3 +34,3 @@ "default": "./support.js" | ||
"test:open": "cypress open --e2e -b chrome", | ||
"format": "prettier --write \"**/*.{js,md,json}\" ", | ||
"format": "prettier --write .", | ||
"lint": "eslint --ignore-path .gitignore .", | ||
@@ -45,2 +43,4 @@ "release": "standard-version && conventional-github-releaser --preset angular" | ||
"devDependencies": { | ||
"@argos-ci/cli": "^0.1.2", | ||
"@argos-ci/cypress": "file:.", | ||
"conventional-github-releaser": "^3.1.5", | ||
@@ -47,0 +47,0 @@ "cypress": "^10.6.0", |
@@ -69,3 +69,3 @@ import "cypress-wait-until"; | ||
const screenshotName = `argos/${name ?? cy.state("runnable").fullTitle()}`; | ||
const screenshotName = `argos/${name || cy.state("runnable").fullTitle()}`; | ||
Cypress.log({ | ||
@@ -85,5 +85,5 @@ name: "argosScreenshot", | ||
cy.wrap(subject).screenshot(screenshotName, { | ||
capture: "viewport", | ||
overwrite: true, | ||
blackout: ['[data-visual-test="blackout"]', ...(options.blackout ?? [])], | ||
blackout: ['[data-visual-test="blackout"]'].concat( | ||
options.blackout || [] | ||
), | ||
...options, | ||
@@ -90,0 +90,0 @@ }); |
6834
9