Skip to content

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

Merged
merged 7 commits into from
Feb 19, 2019
Merged

test(ts-estree): add missing test cases #300

merged 7 commits into from
Feb 19, 2019

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Feb 19, 2019

This PR aims to improve coverage in ts-estree project

@@ -2360,7 +2360,7 @@ export class Converter {
return this.fixExports(node, result);
}

case SyntaxKind.FirstTypeNode: {
case SyntaxKind.TypePredicate: {
Copy link
Collaborator Author

@armano2 armano2 Feb 19, 2019

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
Copy link
Collaborator Author

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
Copy link

codecov bot commented Feb 19, 2019

Codecov Report

Merging #300 into master will increase coverage by 0.29%.
The diff coverage is 100%.

@@            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
Impacted Files Coverage Δ
packages/typescript-estree/src/semantic-errors.ts 91.66% <ø> (+13.09%) ⬆️
packages/typescript-estree/src/convert.ts 99.45% <ø> (+0.54%) ⬆️
packages/typescript-estree/src/node-utils.ts 98.63% <100%> (+1.32%) ⬆️

@armano2 armano2 changed the title refactor(ts-estree): test cases and typos test(ts-estree): add missing test cases Feb 19, 2019
@armano2 armano2 marked this pull request as ready for review February 19, 2019 22:05
@armano2 armano2 merged commit 1b3d31e into typescript-eslint:master Feb 19, 2019
@armano2 armano2 deleted the coverage branch February 19, 2019 22:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants