meinaart / cypress-plugin-snapshots

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

Can't pass updateSnapshots=true in npm script to update existing snapshots #204

Open kamiloski88 opened 2 years ago

kamiloski88 commented 2 years ago

I have prepared npm script to update exising snapshot by passing updateSnapshots=true, but when I run it it's looks like this flag is not switched. Here is my script "cy:updatesnapshots": "cypress run --browser chrome --headless --spec {{path to spec} --env updateSnapshots=true", but when I set updateSnapshots=true in cypress.json then properly snapshots are updated

seif3r commented 2 years ago

Same problem here, works fine from config file, nothing happens with npx cypress run --env updateSnapshots=true

kamiloski88 commented 2 years ago

Same problem here, works fine from config file, nothing happens with npx cypress run --env updateSnapshots=true

I feel that project is dead. There is a lot of issues without author reply :/