You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* migrate plugin options from Cypress.env() to Cypress.expose() in preparation for Cypress 16 ([#376](https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/issues/376)) ([2b71557](https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/commit/2b7155700bcddbbef92c5c42d0e5fe05beb3fa00)), closes [#375](https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/issues/375). For migration guide, go to this link: https://github.com/FRSOURCE/cypress-plugin-visual-regression-diff/blob/main/packages/cypress-plugin-visual-regression-diff/MIGRATION.md#40x---41x
Copy file name to clipboardExpand all lines: packages/cypress-plugin-visual-regression-diff/README.md
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,9 +158,12 @@ Still got troubles with installation? Have a look at [examples directory of this
158
158
## Automatic clean up of unused images
159
159
160
160
It's useful to remove screenshots generated by the visual regression plugin that are not used by any test anymore.
161
-
Enable this feature via env variable and enjoy freed up storage space 🚀:
161
+
Enable this feature via expose variable and enjoy freed up storage space 🚀:
162
162
163
163
```bash
164
+
# Cypress 15.10+
165
+
npx cypress run --expose "pluginVisualRegressionCleanupUnusedImages=true"
166
+
# Cypress <15.10 (deprecated in 15.10, removed in 16)
164
167
npx cypress run --env "pluginVisualRegressionCleanupUnusedImages=true"
165
168
```
166
169
@@ -216,33 +219,40 @@ cy.matchImage({
216
219
});
217
220
```
218
221
219
-
- via [global env configuration](https://docs.cypress.io/guides/guides/environment-variables#Setting). Environment variable names are the same as keys of the configuration object above, but with added `pluginVisualRegression` prefix, e.g.:
222
+
- via [global expose configuration](https://on.cypress.io/expose) (Cypress 15.10+). Configuration key names are the same as the keys of the configuration object above, but with added `pluginVisualRegression` prefix, e.g.:
220
223
221
224
```bash
225
+
# Cypress 15.10+
226
+
npx cypress run --expose "pluginVisualRegressionUpdateImages=true" --expose "pluginVisualRegressionDiffConfig={\"threshold\":0.01}"
227
+
# Cypress <15.10 (deprecated in 15.10, removed in 16)
222
228
npx cypress run --env "pluginVisualRegressionUpdateImages=true,pluginVisualRegressionDiffConfig={\"threshold\":0.01}"
0 commit comments