typescript-snapshots-plugin icon indicating copy to clipboard operation
typescript-snapshots-plugin copied to clipboard

Support vitest flavored snapshot file

Open fjc0k opened this issue 1 year ago • 2 comments

https://vitest.dev/guide/snapshot.html#_3-chevron-is-used-as-a-separator-instead-of-colon-for-custom-messages

image

fjc0k avatar May 30 '24 02:05 fjc0k

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

fjc0k avatar Jun 04 '24 05:06 fjc0k

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.

bakasmarius avatar Aug 29 '24 11:08 bakasmarius