-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
test(eslint-plugin): migrate validation tools to jest test cases #1403
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
This comment has been minimized.
This comment has been minimized.
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.
few nits on the test wording.
might as well be more explicit whilst we're at it.
otherwise, LGTM - thanks for doing this
// find the table | ||
const rulesTable = readme.find( | ||
token => token.type === 'table', | ||
) as marked.Tokens.Table; |
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.
Nit - I probably should have correctly typed this
) as marked.Tokens.Table; | |
) as marked.Tokens.Table | undefined; |
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.
that's correct, i just copy/paste it from tools :>
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.
this actually should be:
) as marked.Tokens.Table; | |
const rulesTable = readme.find( | |
(token): token is marked.Tokens.Table => token.type === 'table', | |
); |
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.
LGTM - thanks!
This is follow up PR that changes way how we do test configs and documentations.
There is few positives and negatives with changing it to tests:
For example new configs validation is going to look like this
TODO:
#1396 (comment)