-
Notifications
You must be signed in to change notification settings - Fork 4
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
Support TS 3.9 @ts-expect-error comment? #388
Comments
Wow, super fast @ikatyang, thanks! I'll upgrade now! |
Ah, just trying this out, I guess this doesn't allow using snapshots. I guess that means I need to remove my snapshots when upgrading to this. I suppose this is not super critical, but it would be nice to be able to configure that as well, in case it should test against the snapshot: // @ts-expect-error @dts-jest:fail:snap Regarding compatibility, the rest of the line after
In case you're open to this, but it would be a feature for later, I can also open a new issue for this. |
Ah, sorry. I did not explain what the new usage is. Basically, Let me know if you have any question. |
Ohh, didn't catch the Edit: I've opened a quick PR to add an example for that: #390 |
Hi @ikatyang,
First of all, thanks for the awesome project, really useful!
I was wondering what your feelings are on supporting the
// @ts-expect-error
comments from TypeScript 3.9.Right now, my test files have errors in them (in the editor), because the lines after
// @dts-jest:fail:snap
should actually have an error:What I would like to be able to do would be to use
// @ts-expect-error
either in the place of:...or in addition to the
dts-jest
annotations:or...
or even...
...none of which currently work.
Not sure if this is a feasible ask actually, but it would be nice to clean up more errors in my project!
The text was updated successfully, but these errors were encountered: