cypress-image-snapshot

Catch visual regressions in Cypress with jest-image-snapshot

MIT License

Downloads
369.2K
Stars
64
Committers
9
cypress-image-snapshot - 9.1.0 Latest Release

Published by simonsmith 3 months ago

9.1.0 (2024-07-16)

Features

  • delete screenshot option (2c3bd30)
cypress-image-snapshot - 9.0.3

Published by simonsmith 6 months ago

9.0.3 (2024-05-06)

Bug Fixes

  • only replace specName in cypress run mode, fixes #54 (fab282d)
cypress-image-snapshot - 9.0.2

Published by simonsmith 7 months ago

9.0.2 (2024-04-09)

Bug Fixes

  • command.ts: align order of variables with error message (31e4f06)
cypress-image-snapshot - 9.0.1

Published by simonsmith about 1 year ago

9.0.1 (2023-10-23)

Bug Fixes

  • build: add missing dir to files in package.json (67e2748), closes #35
cypress-image-snapshot - 9.0.0

Published by simonsmith about 1 year ago

9.0.0 (2023-10-20)

Bug Fixes

  • allow isFailOnSnapshotDiff to be set to true (62b8edf), closes #22
  • inline just-extend to prevent build failures (c498800), closes #12

Code Refactoring

  • remove deprecated e2eSpecFolder option (e72673f)

Features

  • allow snap and diff extensions to be configured (0fc9762), closes #33

BREAKING CHANGES

  • Any users that made use of e2eSpecFolder in 8.0.0
    (deprecated in 8.0.1) will need to change it to e2eSpecDir
cypress-image-snapshot - 8.1.2

Published by simonsmith about 1 year ago

8.1.2 (2023-09-13)

Bug Fixes

  • normalize spec name and e2e spec dir to fix cross OS issue (23b9083)
cypress-image-snapshot - 8.1.1

Published by simonsmith about 1 year ago

8.1.1 (2023-08-17)

Bug Fixes

  • remove attempt suffix from snapshot name (eb544a1), closes #19
cypress-image-snapshot - 8.1.0

Published by simonsmith about 1 year ago

8.1.0 (2023-08-15)

Features

  • allow subdirectories to be created in snapshots dir (2218586), closes #17
cypress-image-snapshot - 8.0.2

Published by simonsmith about 1 year ago

8.0.2 (2023-07-31)

Bug Fixes

  • sanitise snapshot filenames (ef49519), closes #15
cypress-image-snapshot - 8.0.1

Published by simonsmith over 1 year ago

8.0.1 (2023-07-26)

Bug Fixes

  • rename e2eSpecFolder -> e2eSpecDir (106af6c)
cypress-image-snapshot - 8.0.0

Published by simonsmith over 1 year ago

8.0.0 (2023-07-25)

Bug Fixes

  • requireSnapshots should work with retries (ebfc8be)

Features

  • normalise directory output for snapshots (1939e25)

BREAKING CHANGES

  • This uses the Cypress.spec.relative option to
    generate the snapshot directory and changes the folder structure.

It should now match the directory structure found in the cypress/e2e/
directory

Updating to this change may mean committing new snapshot paths and
removing old ones in your project (especially with component testing)

See the section "Snapshot paths" in the README for more information

cypress-image-snapshot - 8.0.0-beta.1

Published by simonsmith over 1 year ago

8.0.0-beta.1 (2023-07-19)

Features

  • normalise directory output for snapshots (e8b8110)

BREAKING CHANGES

  • This uses the Cypress.spec.relative option to
    generate the snapshot directory and changes the folder structure.

It should now match the directory structure found in the cypress/e2e/
directory

Updating to this change may mean committing new snapshot paths and
removing old ones in your project

See: https://github.com/simonsmith/cypress-image-snapshot/discussions/5

cypress-image-snapshot - 7.0.0

Published by simonsmith over 1 year ago

7.0.0 (2023-05-25)

Bug Fixes

  • ensure files are packaged in root (c0816dc)
  • move @types/jest-image-snapshot (5e65567)
  • release from root directory (e0bab6a)

Features

  • add recording of snapshot result (488ae4b)
  • add semantic release (b1b063b)
  • allow default options to be passed into addMatchImageSnapshotCommand (405afcb)

BREAKING CHANGES

  • removed fork of original package

This is a rewrite of the original library, now with full support for
TypeScript and improved testing.

Notes:

  • The API for matchImageSnapshot remains the same, as well as all the
    import paths
  • The behavior of the plugin is exactly the same, as are the default
    options

TypeScript types are exported under @simonsmith/cypress-image-snapshot/types.
These should be used instead of the package on DefinitelyTyped

Removed:

  • The reporter is not supported in this version.