Skip to content

Support vitest flavored snapshot file#40

Open
fjc0k wants to merge 1 commit into
asvetliakov:masterfrom
fjc0k:master
Open

Support vitest flavored snapshot file#40
fjc0k wants to merge 1 commit into
asvetliakov:masterfrom
fjc0k:master

Conversation

@fjc0k

@fjc0k fjc0k commented May 30, 2024

Copy link
Copy Markdown

@fjc0k

fjc0k commented Jun 4, 2024

Copy link
Copy Markdown
Author

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

@bakasmarius

Copy link
Copy Markdown

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