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

How to update snapshots? #55

Closed
elchininet opened this issue Apr 6, 2024 · 1 comment
Closed

How to update snapshots? #55

elchininet opened this issue Apr 6, 2024 · 1 comment

Comments

@elchininet
Copy link

Hello,

I am trying to set up this custom matcher in one of my projects, but I cannot make the --updateSnapshot flag to work.

I read this in the limitations:

In order to handle the --updateSnapshot (-u) parameter provided from CLI, there is an abuse of the SnapshotState._updateSnapshot private field. TBD - try to use the globalConfig to get this state.

But it is not still clear to me what should I do. I tried to set up that value in a globalConfig but it didn‘t work. Could it be possible to create a section with clear steps to achieve this?

Regards and thanks in advance.

@elchininet
Copy link
Author

Now reading well the limitation, it seems that it is just to "get the state" not to "set it". I just installed the plugin, tried the -u flag and it seems to be working OK, so closing this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant