-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
test(ts-estree): add missing test cases #300
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
Conversation
@@ -2360,7 +2360,7 @@ export class Converter { | |||
return this.fixExports(node, result); | |||
} | |||
|
|||
case SyntaxKind.FirstTypeNode: { | |||
case SyntaxKind.TypePredicate: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
both SyntaxKind.FirstTypeNode
and SyntaxKind.TypePredicate
have same value (163),
but its better to use node kind instead of "counter"
@@ -452,6 +452,11 @@ tester.addFixturePatternConfig('typescript/errorRecovery', { | |||
'empty-type-parameters-in-function-expression', | |||
'empty-type-parameters-in-method', | |||
'empty-type-parameters-in-method-signature', | |||
/** | |||
* Babel correctly errors on this | |||
* TODO: enable error code TS1024 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should enable this error code in separate PR..
Codecov Report
@@ Coverage Diff @@
## master #300 +/- ##
==========================================
+ Coverage 96.76% 97.05% +0.29%
==========================================
Files 67 67
Lines 2350 2345 -5
Branches 335 334 -1
==========================================
+ Hits 2274 2276 +2
+ Misses 51 46 -5
+ Partials 25 23 -2
|
This PR aims to improve coverage in ts-estree project