Skip to content

Feature/576 preview and goto snapshot - #833

Open
bakasmarius wants to merge 2 commits into
vitest-dev:mainfrom
bakasmarius:feature/576-preview-and-goto-snapshot
Open

bakasmarius wants to merge 2 commits into
vitest-dev:mainfrom
bakasmarius:feature/576-preview-and-goto-snapshot

Conversation

@bakasmarius

Copy link
Copy Markdown

Well, better later than never I guess 😄

This PR adds new features that can be toggled by vitest.showSnapshotPreview setting and closes #576:

  1. When hovering with the mouse over these functions: .toMatchSnapshot() and .toThrowErrorMatchingSnapshot() - actual snapshot content is visible inside the popup (instead of info about these functions).
  2. When using Go to Definition (CTRL + Left Mouse Click) on .toMatchSnapshot() and .toThrowErrorMatchingSnapshot(), it now goes to a snapshot itself inside the snapshot file instead of going to the function definition.

Let me know if you want to change something, I hope it won't take as long this time 😅

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Preview / go to snapshot

1 participant