All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Saves diff images only on failed tests (PR #110)
- TypeScript: Update docs and add type for plugin (PR #98)
- Adds missing
compareSnapshot
TypeScript types (PR #102)
- Uses
errorThreshold
from global options (PR #80)
- Fixes packaging of distribution (PR #95)
- Fixes serialize error object with socket communication (PR #94)
- Adds TypeScript support
- Bumps all dependency versions
- Bumps to Cypress v6.4.0
- Adds
errorThreshold
to the global options (PR #72)
- Updates
peerDependencies
(PR #71)
- Bumps to Cypress v5.6.0
- Sanitizes file names
- Bumps to Cypress v5.2.0
- Adds ability to configure paths by environment variables
- Bumps to Cypress v5.1.0
- Bumps to Cypress v4.12.1
- Checks if snapshot file exists before parsing it
- Bumps to Cypress v4.9.0
- Expands canvas before image comparison so that both images fully cover each other
- Bumps to Cypress v4.5.0
- Snapshot path now based on the CWD (
process.cwd()
)
-
Bumps to Cypress v4.3.0
-
Adds functionality to pass default arguments to
compareSnapshotCommand()
-
Adds functionality to pass an object to
cy.screenshot()
rather than just an error threshold:cy.compareSnapshot('login', 0.1); // or cy.compareSnapshot('login', { capture: 'fullPage', errorThreshold: 0.1 });
- Removes support for Node 8 and 9
- Bumps to Cypress v4.2.0
- Adds a
failSilently
option for ignore failures and proceeding with execution - Replaces mkdirp with fs.mkdir
- Adds
prepare
script to run build step - Fixes quotes for Prettier commands in Windows
- Bumps to Cypress v4.1.0
- Updates readme
- Bumps to Cypress v4.0.2
- Bumps to Cypress v3.6.1
- Adds functionality for testing a single HTML element
- Bumps to Cypress v3.4.1
- Bumps to Cypress v3.3.2, adds Prettier, and uses mkdirp instead of fs.mkdirSync
- Bumps to Cypress v3.3.1
- Bumps to Cypress v3.2.0
- Uses pixelmatch instead of image-diff
- BREAKING:
errorThreshold
now compares with the square root of the percentage of pixels that have changed. For example, if the image size is 1000 x 660, and there are 257 changed pixels, the error value would be(257 / 1000 / 660) ** 0.5 = 0.01973306715627196663293831730957
.