meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
489 stars 116 forks source link

(feat) Specify snapshot path #157

Open d3lm opened 3 years ago

d3lm commented 3 years ago

Is it possible to specify the snapshot path as part of calling toMatchSnapshot? I'd like to pass in the path to the folder where the snapshot file should be stored, and also the test name used for the snapshot file. Normally this works out of the box, but I only have one single spec file which dynamically generates test cases, so I end up with a single snapshot file, but like to have one snapshot file per generated test case.

d3lm commented 3 years ago

This is prolly related to #119