Skip to content

Support vitest flavored snapshot file #40

New issue

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

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

Already on GitHub? # to your account

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.

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

Successfully merging this pull request may close these issues.

2 participants