Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kamiloski88 opened this issue Feb 7, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@kamiloski88
Copy link

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

@kamiloski88 kamiloski88 added the bug Something isn't working label Feb 7, 2022
@seif3r
Copy link

seif3r commented Feb 24, 2022

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

@kamiloski88
Copy link
Author

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 :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants