question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update failing snapshots [HOW TO]

See original GitHub issue

Hi, I don’t find any documentation so that’s why I’m asking this question:

How do I update failing snapshots? I see that message but I don’t know were to press u.

› 2 snapshot tests failed in 1 test suite. Inspect your code changes or press u to update them.

Thanks

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:11
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
adambraimbridgecommented, Aug 23, 2018

I’m also experiencing this absence of the “dropdown to update snapshots in the editor”.

I used to see it, but now it no longer displays. Is this a known issue?

image

Above: I get “New snapshot is ready to write”, but no means within VSCode of writing it.

5reactions
segmentJasoncommented, Jun 15, 2018

@seanpoulter I’d gladly submit the PR with the docs if @orta can direct me to the dropdown. I don’t see a dropdown anywhere and it doesn’t update on save of the test or file that caused the need for snapshot update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest: How to Update Snapshot Tests - In Plain English
Run the snapshot test, make sure it passes — if it does not pass, find the problem and fix it, don't change the...
Read more >
How to update snapshot with Jest and vue-cli - Stack Overflow
Based on the docs: npm run test -- -u. I verified this works.
Read more >
Failed to update snapshot in repository - Opster
The snapshot operation will fail if there is a missing index. Setting the ignore_unavailable option to true will cause indices that do not...
Read more >
Snapshot | Guide - Vitest
In watch mode, you can press the u key in the terminal to update the failed snapshot directly. Or you can use the...
Read more >
What I Learned at Work this Week: Updating a Jest Snapshot
This week, I had to make a change to a preset I had written, but when I tried to push my code, I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found