meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
497 stars 117 forks source link

(feat) Store Each Text Snapshot In Its Own File #84

Open lots0logs opened 4 years ago

lots0logs commented 4 years ago

Is your feature request related to a problem? Please describe. When a spec file dynamically generates a lot of tests that use snapshots, all the snapshots are stored in a single file which can end up being pretty large making it a hassle to make any adjustments or fixes to snapshots directly.

Describe the solution you'd like What do you think about storing each test's snapshot(s) in separate files? The file names could either be the full snapshot name that is used currently or perhaps a hash of the name since it can be quite lengthy in some cases.

Describe alternatives you've considered N/A

Additional context N/A