typescript-snapshots-plugin
typescript-snapshots-plugin copied to clipboard
hover over `.toMatchSnapshot()` shows Jest method description instead of snapshot
VS Code 1.72.2 Plugin version: 0.4.0
This was working initially, but at some point along the way in my project I guess it stopped.
I just tried to use it and am now only seeing the Jest help on .toMatchSnapshot() hover
(method) jest.Matchers<void, GetRequestResponse>.toMatchSnapshot(snapshotName?: string | undefined): void (+1 overload)
This ensures that a value matches the most recent snapshot.
Check out [the Snapshot Testing guide](vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-sandbox/workbench/workbench.html) for more information.
Likewise, ctrl+click on .toMatchSnapshot() navigates to @types/jest/index.d.ts -> jest -> matchers -> toMatchSnapshot.
I tried adding the plugin to my tsconfig.json under compilerOptions:
"plugins": [{
"name": "typescript-snapshots-plugin",
"snapshotDir": "__snapshots__",
"snapshotCallIdentifiers": [
"toMatchSnapshot"
]
}]
I also clicked the TypeScript section of VSCode status bar and made sure it's using the workspace version and the correct tsconfig.json.
I've restarted the TypeScript sever afterwards, reloaded the window, even quit and restarted and the issue still persists.