-
-
Notifications
You must be signed in to change notification settings - Fork 38
chore: add type tests for core package
#137
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
| TraversalStep, | ||
| } from "@eslint/core"; | ||
|
|
||
| interface TestLanguageOptions extends LanguageOptions { |
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.
Can we add some separators in this file? It's not clear to me which of these is intended to test something vs. which are just data needed for a test later in the file.
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.
Most of the definitions use implements or extends to test the exported types, but some of them are also used later as test helpers for other types, like TestSourceCode in createSourceCode. I tried to separate definitions by usage in 0705730.
nzakas
left a comment
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!
Prerequisites checklist
What is the purpose of this pull request?
Add type tests.
What changes did you make? (Give an overview)
Add basic type tests for the
corepackage and update the CI build to run the type tests.Related Issues
Is there anything you'd like reviewers to focus on?