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

Support vitest flavored snapshot file #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fjc0k
Copy link

@fjc0k fjc0k commented May 30, 2024

@fjc0k
Copy link
Author

fjc0k commented Jun 4, 2024

Before this PR is merged, you can use ts-snapshots-plugin instead of typescript-snapshots-plugin to support vitest.

@bakasmarius
Copy link

Before this PR is merged, you can use ts-snapshots-plugin instead of typescript-snapshots-plugin to support vitest.

I tried doing that, but it doesn't work - maybe I'm doing something wrong?

  • I installed ts-snapshots-plugin (npm i -D ts-snapshots-plugin)
  • I updated my tsconfig.json: "plugins": [{ "name": "ts-snapshots-plugin", "snapshotFileFlavor": "vitest" }],
  • I restarted VSCode

I still can't see the previews or go to snapshot files.

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.

2 participants