-
Notifications
You must be signed in to change notification settings - Fork 295
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
Using typescript typecasting with <> prevents to show test info in the editor #706
Comments
looks like the babel-parser might be parsing this as JSX syntax instead of a TS typecasting. If you are indeed in a react/react-native project, probably won't be able to use "<>" as typecasting, otherwise you should be able to. We should probably distinguish the jsx/tsx files in |
I think it is not related to babel nor jsx as they are not used in my project. Actually it is vanilla typescript. You can have a look at the package.json in the git link in my previous comment. Hope this helps |
@jseto sorry I might have confused you. The babel-parser was used by the It's a bug in jest-editor-support that we should fix. Thanks for raising that to our attention 👍 Fortunately, the workaround is pretty easy as you already discovered. |
close via jest-community/jest-editor-support#72 and #724 |
Using typescript typecasting with <> prevents to show test info in the editor (no gutter checkmarks, no errors next to the expect functions, etc.)
Environment
vscode-jest version
: 4.0.1node -v
: 14.16.1npm -v
: 7.9.0npm ls jest
:├── [email protected]
└─┬ [email protected]
└── [email protected] deduped
your vscode-jest settings if customized:
Operating system: Ubuntu 20.04
Prerequisite
npm run test
ornode_modules/.bin/jest
) jestSteps to Reproduce
Using typescript typecasting with <>, ie in a test file
using the
as
typecast behaves normalCheck this repo for minimal code bug reproduction
https://github.com/jseto/vscode-jest-bug
Relevant Debug Info
Output from vscode jest output tab
Output from jest in terminal
The text was updated successfully, but these errors were encountered: